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
After upgrading my repository from storybook version 6.5.9 to 7.1.0 using the automigrations I am getting errors about ES Modules in a package that storybook consumes (cli-table3). yarn why cli-table3 reveals that it is brought in by the storybook project ("_project_#storybook#@storybook#cli#@storybook#core-server" depends on it). The migration indicated success and was able to complete. But now when I try to run yarn storybook I get the below error each time I try to run.
Version 6.5.9 is working great but I wanted to get to the current version.
###Error
const stringWidth = require('string-width');
Error [ERR_REQUIRE_ESM]: require() of ES Module <repoPath>\node_modules\string-width\index.js from <repoPath>\node_modules\cli-table3\src\utils.js not supported.
Instead change the require of index.js in <repoPath>\node_modules\cli-table3\src\utils.js to a dynamic import() which is available in all CommonJS modules.
at Object.<anonymous> (<repoPath>\node_modules\cli-table3\src\utils.js:1:21)
at Object.<anonymous> (<repoPath>\node_modules\cli-table3\src\table.js:2:15)
at Object.<anonymous> (<repoPath>\node_modules\cli-table3\index.js:1:18)
at Object.<anonymous> (<repoPath>\node_modules\@storybook\core-server\dist\index.js:113:7796)
at Object.<anonymous> (<repoPath>\node_modules\@storybook\cli\dist\generate.js:11:4494)
at Object.<anonymous> (<repoPath>\node_modules\@storybook\cli\bin\index.js:9:1)
at Object.<anonymous> (<repoPath>\node_modules\storybook\index.js:3:1) {
code: 'ERR_REQUIRE_ESM'
}
Describe the bug
After upgrading my repository from storybook version 6.5.9 to 7.1.0 using the automigrations I am getting errors about ES Modules in a package that storybook consumes (
cli-table3
).yarn why cli-table3
reveals that it is brought in by the storybook project ("_project_#storybook#@storybook#cli#@storybook#core-server" depends on it
). The migration indicated success and was able to complete. But now when I try to runyarn storybook
I get the below error each time I try to run.Version 6.5.9 is working great but I wanted to get to the current version.
###Error
###tsconfig.json
error screenshot
To Reproduce
System
Additional context
No response
The text was updated successfully, but these errors were encountered: