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
I figured out that the code is in ansi-styles v3.2.1 which is referred by chalk v2.0.0, and chalk v2.0.0. is referred by @babel/highlight -> @babel/code-frame -> @babel/core。I guess the problem occurred because Rollup did not treat commonjs as well as modulejs.
chalk v2.0.0 does not support esmodule mode.
Notification: in my package.json, type is set to "module".
Is there a workaround ?
Having the same issue with jsondiffpatch package using vite.
First, I thought it's vite issue, but then I saw they updated the commonjs dependecy which breaks it.
You can check the two reproduction links: vitejs/vite#11986
I'm developing a tool that can output a dependency tree of program with @babel/core, in development mode, it runs well
but after building by rollup, the output runs with error.
I figured out that the code is in ansi-styles v3.2.1 which is referred by chalk v2.0.0, and chalk v2.0.0. is referred by @babel/highlight -> @babel/code-frame -> @babel/core。I guess the problem occurred because Rollup did not treat commonjs as well as modulejs.
chalk v2.0.0 does not support esmodule mode.
Notification: in my package.json, type is set to "module".
Is there a workaround ?
source code
rollup.config.js
The text was updated successfully, but these errors were encountered: