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

npm run build fails #1

Open
masterkain opened this issue Nov 12, 2022 · 0 comments
Open

npm run build fails #1

masterkain opened this issue Nov 12, 2022 · 0 comments

Comments

@masterkain
Copy link

> [email protected] build
> run-s clean build:parcel build:eleventy


> [email protected] clean
> rm -rf dist


> [email protected] build:parcel
> run-p build:css build:js build:images


> [email protected] build:js
> parcel build ./src/js/main.js --dist-dir ./dist/js


> [email protected] build:css
> parcel build ./src/scss/*.scss --dist-dir ./dist/css


> [email protected] build:images
> parcel build src/assets/img/*

⠋ Building main.js...
⠋ Building main.scss...
✨ Built in 244ms
🚨 Build failed.

@parcel/optimizer-terser: You must provide the URL of lib/mappings.wasm by calling SourceMapConsumer.initialize({ 'lib/mappings.wasm': ... }) before using SourceMapConsumer

  Error: You must provide the URL of lib/mappings.wasm by calling SourceMapConsumer.initialize({ 'lib/mappings.wasm': ... }) before using SourceMapConsumer
  at readWasm (/private/tmp/bootstrap-dashboard-kit/node_modules/terser/node_modules/source-map/lib/read-wasm.js:8:13)
  at wasm (/private/tmp/bootstrap-dashboard-kit/node_modules/terser/node_modules/source-map/lib/wasm.js:25:16)
  at /private/tmp/bootstrap-dashboard-kit/node_modules/terser/node_modules/source-map/lib/source-map-consumer.js:264:14
  at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
  at async SourceMap (/private/tmp/bootstrap-dashboard-kit/node_modules/terser/dist/bundle.min.js:19362:20)
  at async minify (/private/tmp/bootstrap-dashboard-kit/node_modules/terser/dist/bundle.min.js:27714:41)
  at async Object.optimize (/private/tmp/bootstrap-dashboard-kit/node_modules/@parcel/optimizer-terser/lib/TerserOptimizer.js:131:16)
  at async PackagerRunner.optimize (/private/tmp/bootstrap-dashboard-kit/node_modules/@parcel/core/lib/PackagerRunner.js:364:20)
  at async PackagerRunner.getBundleResult (/private/tmp/bootstrap-dashboard-kit/node_modules/@parcel/core/lib/PackagerRunner.js:255:15)
  at async PackagerRunner.getBundleInfo (/private/tmp/bootstrap-dashboard-kit/node_modules/@parcel/core/lib/PackagerRunner.js:239:9)
⠹ Building main.scss...
ERROR: "build:js" exited with 1.
ERROR: "build:parcel" exited with 1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant