You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is the error that happens. chalk v5 does not provide support for commonjs. Since this package do provide commonjs exports I think this is a bug that should be fixed here.
[webpack-cli] Failed to load 'webpack.config.js' config
[webpack-cli] Error [ERR_REQUIRE_ESM]: require() of ES Module node_modules/@tanstack/router-plugin/node_modules/chalk/source/index.js from node_modules/@tanstack/router-plugin/dist/cjs/logger.cjs not supported.
Which project does this relate to?
Router
Describe the bug
This is the error that happens. chalk v5 does not provide support for commonjs. Since this package do provide commonjs exports I think this is a bug that should be fixed here.
[webpack-cli] Failed to load 'webpack.config.js' config
[webpack-cli] Error [ERR_REQUIRE_ESM]: require() of ES Module node_modules/@tanstack/router-plugin/node_modules/chalk/source/index.js from node_modules/@tanstack/router-plugin/dist/cjs/logger.cjs not supported.
Your Example Website or App
https://stackblitz.com/edit/github-q2lephbt-bqg6uxll?file=README.md
Steps to Reproduce the Bug or Issue
Node v18
Define a webpack.config.js
run webpack cli with config
Expected behavior
It should not fail on chalk v5.
Screenshots or Videos
No response
Platform
Additional context
No response
The text was updated successfully, but these errors were encountered: