-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Interaction addon break storybook in 7.1.0 #23509
Comments
This should be fixed now via #23597. Closing for now, but please feel free to reopen if the issue persists in the latest version of Storybook. Thanks. |
I was running into this issue after upgrading from 7.2.0 to 7.2.1, and still seeing the issue in Storybook 7.2.2. The full failure:
Rolling back to Storybook 7.0.27 didn't help. The problem was the I was able to fix this by manually updating the lock file to forcing npm to install |
Describe the bug
Bug appeared after updating @storybook/addon-interactions from 7.0.27 into 7.1.0.
Using pnpm 7.24.3
Here is the full log of the issue :
✘ [ERROR] Failed to resolve entry for package "fs". The package may have incorrect main/module/exports specified in its package.json. [plugin vite:dep-pre-bundle]
This error came from the "onResolve" callback registered here:
The plugin "vite:dep-pre-bundle" was triggered by this import
/workspaces/source-design-system/node_modules/.pnpm/esbuild@0.17.18/node_modules/esbuild/lib/main.js:1636
let error = new Error(
${text}${summary}
);^
Error: Build failed with 1 error:
../../node_modules/.pnpm/esbuild@0.17.18/node_modules/esbuild/lib/main.js:1360:21: ERROR: [plugin: vite:dep-pre-bundle] Failed to resolve entry for package "fs". The package may have incorrect main/module/exports specified in its package.json.
at failureErrorWithLog (/workspaces/source-design-system/node_modules/.pnpm/esbuild@0.17.18/node_modules/esbuild/lib/main.js:1636:15)
at /workspaces/source-design-system/node_modules/.pnpm/esbuild@0.17.18/node_modules/esbuild/lib/main.js:1048:25
at /workspaces/source-design-system/node_modules/.pnpm/esbuild@0.17.18/node_modules/esbuild/lib/main.js:1512:9
at runMicrotasks ()
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errors: [
{
detail: Error: Failed to resolve entry for package "fs". The package may have incorrect main/module/exports specified in its package.json.
at packageEntryFailure (file:///workspaces/source-design-system/node_modules/.pnpm/vite@4.3.5/node_modules/vite/dist/node/chunks/dep-934dbc7c.js:23384:11)
at resolvePackageEntry (file:///workspaces/source-design-system/node_modules/.pnpm/vite@4.3.5/node_modules/vite/dist/node/chunks/dep-934dbc7c.js:23381:5)
at tryNodeResolve (file:///workspaces/source-design-system/node_modules/.pnpm/vite@4.3.5/node_modules/vite/dist/node/chunks/dep-934dbc7c.js:23115:20)
at Context.resolveId (file:///workspaces/source-design-system/node_modules/.pnpm/vite@4.3.5/node_modules/vite/dist/node/chunks/dep-934dbc7c.js:22876:28)
at Object.resolveId (file:///workspaces/source-design-system/node_modules/.pnpm/vite@4.3.5/node_modules/vite/dist/node/chunks/dep-934dbc7c.js:42811:46)
at runMicrotasks ()
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async file:///workspaces/source-design-system/node_modules/.pnpm/vite@4.3.5/node_modules/vite/dist/node/chunks/dep-934dbc7c.js:64074:21
at async file:///workspaces/source-design-system/node_modules/.pnpm/vite@4.3.5/node_modules/vite/dist/node/chunks/dep-934dbc7c.js:23691:34
at async requestCallbacks.on-resolve (/workspaces/source-design-system/node_modules/.pnpm/esbuild@0.17.18/node_modules/esbuild/lib/main.js:1360:22),
id: '',
location: {
column: 21,
file: '../../node_modules/.pnpm/esbuild@0.17.18/node_modules/esbuild/lib/main.js',
length: 0,
line: 1360,
lineText: ' let result = await callback({\n' +
' at packageEntryFailure (file:///workspaces/source-design-system/node_modules/.pnpm/vite@4.3.5/node_modules/vite/dist/node/chunks/dep-934dbc7c.js:23384:11)\n' +
' at resolvePackageEntry (file:///workspaces/source-design-system/node_modules/.pnpm/vite@4.3.5/node_modules/vite/dist/node/chunks/dep-934dbc7c.js:23381:5)\n' +
' at tryNodeResolve (file:///workspaces/source-design-system/node_modules/.pnpm/vite@4.3.5/node_modules/vite/dist/node/chunks/dep-934dbc7c.js:23115:20)\n' +
' at Context.resolveId (file:///workspaces/source-design-system/node_modules/.pnpm/vite@4.3.5/node_modules/vite/dist/node/chunks/dep-934dbc7c.js:22876:28)\n' +
' at Object.resolveId (file:///workspaces/source-design-system/node_modules/.pnpm/vite@4.3.5/node_modules/vite/dist/node/chunks/dep-934dbc7c.js:42811:46)\n' +
' at runMicrotasks ()\n' +
' at processTicksAndRejections (node:internal/process/task_queues:96:5)\n' +
' at async file:///workspaces/source-design-system/node_modules/.pnpm/vite@4.3.5/node_modules/vite/dist/node/chunks/dep-934dbc7c.js:64074:21\n' +
' at async file:///workspaces/source-design-system/node_modules/.pnpm/vite@4.3.5/node_modules/vite/dist/node/chunks/dep-934dbc7c.js:23691:34\n' +
' at async requestCallbacks.on-resolve (/workspaces/source-design-system/node_modules/.pnpm/esbuild@0.17.18/node_modules/esbuild/lib/main.js:1360:22)',
namespace: 'file',
suggestion: ''
},
notes: [
{
location: {
column: 20,
file: '../../node_modules/.pnpm/esbuild@0.17.18/node_modules/esbuild/lib/main.js',
length: 0,
line: 1279,
lineText: ' let promise = setup({\n' +
' at setup (file:///workspaces/source-design-system/node_modules/.pnpm/vite@4.3.5/node_modules/vite/dist/node/chunks/dep-934dbc7c.js:23671:19)\n' +
' at handlePlugins (/workspaces/source-design-system/node_modules/.pnpm/esbuild@0.17.18/node_modules/esbuild/lib/main.js:1279:21)\n' +
' at buildOrContextImpl (/workspaces/source-design-system/node_modules/.pnpm/esbuild@0.17.18/node_modules/esbuild/lib/main.js:968:5)\n' +
' at Object.buildOrContext (/workspaces/source-design-system/node_modules/.pnpm/esbuild@0.17.18/node_modules/esbuild/lib/main.js:776:5)\n' +
' at /workspaces/source-design-system/node_modules/.pnpm/esbuild@0.17.18/node_modules/esbuild/lib/main.js:2172:68\n' +
' at new Promise ()\n' +
' at Object.context (/workspaces/source-design-system/node_modules/.pnpm/esbuild@0.17.18/node_modules/esbuild/lib/main.js:2172:27)\n' +
' at Object.context (/workspaces/source-design-system/node_modules/.pnpm/esbuild@0.17.18/node_modules/esbuild/lib/main.js:2012:58)\n' +
' at prepareEsbuildOptimizerRun (file:///workspaces/source-design-system/node_modules/.pnpm/vite@4.3.5/node_modules/vite/dist/node/chunks/dep-934dbc7c.js:44414:35)',
namespace: 'file',
suggestion: ''
},
text: 'This error came from the "onResolve" callback registered here:'
},
{
location: {
column: 17,
file: '../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/graceful-fs.js',
length: 4,
line: 1,
lineText: "var fs = require('fs')",
namespace: '',
suggestion: ''
},
text: 'The plugin "vite:dep-pre-bundle" was triggered by this import'
}
],
pluginName: 'vite:dep-pre-bundle',
text: 'Failed to resolve entry for package "fs". The package may have incorrect main/module/exports specified in its package.json.'
}
],
warnings: []
}
To Reproduce
No response
System
Additional context
No response
The text was updated successfully, but these errors were encountered: