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
Fails to build with parcel build --no-cache --public-url ./ src/*.html
🚨 Build failed.
@parcel/optimizer-swc: Bindings not found.
Error: Bindings not found.
at Compiler.<anonymous>
(/builds/.../node_modules/@swc/core/index.js:227:19)
at Generator.next (<anonymous>)
at /builds/.../node_modules/@swc/core/index.js:31:71
at new Promise (<anonymous>)
at __awaiter
(/builds/.../node_modules/@swc/core/index.js:27:12)
at Compiler.transform
(/builds/.../node_modules/@swc/core/index.js:203:16)
at transform
(/builds/.../node_modules/@swc/core/index.js:352:21)
at Object.optimize
(/builds/.../node_modules/@parcel/optimizer-swc/lib/SwcOptimizer.js:84:44)
at process.processTicksAndRejections
(node:internal/process/task_queues:95:5)
at async PackagerRunner.optimize
(/builds/.../node_modules/@parcel/core/lib/PackagerRunner.js:342:20)
@dagnelies-elo Had this issue when building Parcel on a DigitalOcean App Platform instance, this fixed it. Any idea why these dependencies aren't automatically installed if required?
🐛 bug report
Fails to build with
parcel build --no-cache --public-url ./ src/*.html
🎛 Configuration (.babelrc, package.json, cli command)
Running on node 22, nothing fancy in the
package.json
:The optional dependency was needed, otherwise it would result in another bug reported here.
And the typescript config looks as follows:
🤔 Expected Behavior
It compiles
😯 Current Behavior
It throws that error
💁 Possible Solution
🔦 Context
💻 Code Sample
🌍 Your Environment
...but it works on Windows!
The text was updated successfully, but these errors were encountered: