Skip to content
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] swc build error #12

Open
brian-patrick-3 opened this issue Dec 18, 2024 · 1 comment
Open

[Bug] swc build error #12

brian-patrick-3 opened this issue Dec 18, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@brian-patrick-3
Copy link

Describe the bug

Getting the following error executing build-storybook in our CI env:

10:46:51 AM: Module build failed (from ./node_modules/swc-loader/src/index.js):
10:46:51 AM: Error: Failed to load native binding
10:46:51 AM:     at Object.<anonymous> (./node_modules/@swc/core/binding.js:329:11)
10:46:51 AM:     at Module._compile (node:internal/modules/cjs/loader:1469:14)
10:46:51 AM:     at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
10:46:51 AM:     at Object.newLoader (./node_modules/esbuild-register/dist/node.js:2262:9)
10:46:51 AM:     at extensions..js (./node_modules/esbuild-register/dist/node.js:4838:24)
10:46:51 AM:     at Module.load (node:internal/modules/cjs/loader:1288:32)
10:46:51 AM:     at Module._load (node:internal/modules/cjs/loader:1104:12)
10:46:51 AM:     at Module.require (node:internal/modules/cjs/loader:1311:19)
10:46:51 AM:     at require (node:internal/modules/helpers:179:18)
10:46:51 AM:     at Object.<anonymous> (./node_modules/@swc/core/index.js:49:17)
10:46:51 AM: Module build failed: Error: Failed to load native binding
10:46:51 AM:     at Object.<anonymous> (./node_modules/@swc/core/binding.js:329:11)
10:46:51 AM:     at Module._compile (node:internal/modules/cjs/loader:1469:14)
10:46:51 AM:     at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
10:46:51 AM:     at Object.newLoader (./node_modules/esbuild-register/dist/node.js:2262:9)
10:46:51 AM:     at extensions..js (./node_modules/esbuild-register/dist/node.js:4838:24)
10:46:51 AM:     at Module.load (node:internal/modules/cjs/loader:1288:32)
10:46:51 AM:     at Module._load (node:internal/modules/cjs/loader:1104:12)
10:46:51 AM:     at Module.require (node:internal/modules/cjs/loader:1311:19)
10:46:51 AM:     at require (node:internal/modules/helpers:179:18)
10:46:51 AM:     at Object.<anonymous> (./node_modules/@swc/core/index.js:49:17)

@netlify/build 29.56.1
Node 18 & 20

Full log: https://app.netlify.com/sites/shidoka-icons/deploys/6762fc4877125021a8c0a455

@brian-patrick-3 brian-patrick-3 added the bug Something isn't working label Dec 18, 2024
@Armanio
Copy link
Member

Armanio commented Dec 23, 2024

Hi!
I found a workaround: downgrade @storybook/addon-webpack5-compiler-swc to 1.0.4 will fix it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants