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

Error whilst building #373

Open
JanCantCode opened this issue Oct 20, 2023 · 4 comments
Open

Error whilst building #373

JanCantCode opened this issue Oct 20, 2023 · 4 comments

Comments

@JanCantCode
Copy link

Whilst running npm run build after npm install on my raspberry pi, i encounter the following error:


@parcel/transformer-css: Could not resolve module "/home/pi/statistics/Minetrack/node_modules/lightningcss/lightningcss.linux-arm64-gnu.node" from
"/home/pi/statistics/Minetrack/node_modules/lightningcss/node/index.js"

  Error: Could not resolve module "/home/pi/statistics/Minetrack/node_modules/lightningcss/lightningcss.linux-arm64-gnu.node" from "/home/pi/statistics/Minetrack/node_modules/lightningcss/node/index.js"
      at $0578d0f6e116167e$export$fb2a0b866a8162dc.resolve (/home/pi/statistics/Minetrack/node_modules/@parcel/package-manager/lib/index.js:4991:21)
      at NodePackageManager.resolveSync (/home/pi/statistics/Minetrack/node_modules/@parcel/package-manager/lib/index.js:3510:42)
      at NodePackageManager.requireSync (/home/pi/statistics/Minetrack/node_modules/@parcel/package-manager/lib/index.js:3352:34)
      at Module.m.require (/home/pi/statistics/Minetrack/node_modules/@parcel/package-manager/lib/index.js:3366:25)
      at require (/home/pi/statistics/Minetrack/node_modules/v8-compile-cache/v8-compile-cache.js:159:20)
      at Object.<anonymous> (/home/pi/statistics/Minetrack/node_modules/lightningcss/node/index.js:21:22)
      at Module._compile (/home/pi/statistics/Minetrack/node_modules/v8-compile-cache/v8-compile-cache.js:192:30)
      at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
      at Module.load (internal/modules/cjs/loader.js:863:32)
      at NodePackageManager.load (/home/pi/statistics/Minetrack/node_modules/@parcel/package-manager/lib/index.js:3375:15)

npm ERR! code 1
npm ERR! path /home/pi/statistics/Minetrack
npm ERR! command failed
npm ERR! command sh -c eslint assets/js/*.js && parcel build assets/html/index.html --dist-dir dist```. Because stuff isnt bundled now, i cant access the webview.. any fix?
@Euro-pol
Copy link

Euro-pol commented Dec 6, 2023

I'm having this error too. Did you find a way to fix it?

@JanCantCode
Copy link
Author

I'm having this error too. Did you find a way to fix it?

i just cloned it on my windows device, ran the build script that bundled the ressources, and uploaded the bundled ressource folder to a server and downloaded it with my raspberry pi - that worked

@Euro-pol
Copy link

Euro-pol commented Dec 6, 2023

I'm having this error too. Did you find a way to fix it?

i just cloned it on my windows device, ran the build script that bundled the ressources, and uploaded the bundled ressource folder to a server and downloaded it with my raspberry pi - that worked

Thanks!

@Euro-pol
Copy link

Euro-pol commented Dec 6, 2023

Found another fix, after running that everything built fine.

rm -rf node_modules package-lock.json && npm i

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants