-
Notifications
You must be signed in to change notification settings - Fork 221
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
Issue with npm run build
#264
Comments
Are you running x86/x86_64 based OS or arm64 ? If arm, please check issue #261 |
It doesn't look like an arch-related issue. It's saying it can't find the |
even after installing uplot dependency by |
I'm having the same issue as @joppari npm run build
🚨 Build failed. @parcel/core: Failed to resolve 'uplot/dist/uPlot.min.css' from './assets/css/main.css' /var/www/html/assets/css/main.css:1:9
@parcel/resolver-default: Cannot load file './uplot/dist/uPlot.min.css' in './assets/css'. Any fixes? Thanks |
Now I notice that it's trying to resolve the @import url(npm:uplot/dist/uPlot.min.css); If this fixes it, feel free to PR the change :) It also wouldn't hurt to try updating the |
i have same issuse like him, after i change like you said:
🚨 Build failed. @parcel/transformer-js: Browser scripts cannot have imports or exports. /www/wwwroot/minetrack/assets/js/main.js:1:1
/www/wwwroot/minetrack/assets/html/index.html:15:2
📝 Learn more: https://parceljs.org/languages/javascript/#classic-scripts /tmp/build-97e55a3e.sh: line 1: 72246 Segmentation fault parcel build assets/html/index.html --dist-dir dist i'm using @parcel/[email protected], even i change parcel in package.json to 2.0.0-beta.3.1 or 2.1.1 still have that error. |
I migrated my Minetrack instance to new server. Cloned this repo, ran all the npm commands and it worked just fine. I did have some issues with sqlite on AlmaLinux 8.6 but you can fix it by doing installing sqlite via yum (or dnf, whatever you wanna use) and then running command TL;DR: Do not use releases, since they are outdated, clone the repo instead. |
installed the minetracker and was getting cannot GET/
tried npm run build but getting this error :
🚨 Build failed.
@parcel/core: Failed to resolve 'uplot/dist/uPlot.min.css' from './assets/css/ma in.css'
/root/Minetrack/assets/css/main.css:1:9
@parcel/resolver-default: Cannot load file './uplot/dist/uPlot.min.css' in './as sets/css'.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build:
eslint assets/js/*.js && parcel build assets/ht ml/index.html --dist-dir dist
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional log ging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2021-07-20T08_22_46_771Z-debug.log
root@vmi624939:
/Minetrack# cd /root/.npm/_logs^C/Minetrack# nano /root/.npm/_logs/2021-07-20T08_22_46_771Z-debug .logroot@vmi624939:
The log:
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/bin/npm', 'run', 'build' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]
5 info lifecycle [email protected]
prebuild: [email protected]build: [email protected]6 info lifecycle [email protected]
7 verbose lifecycle [email protected]
build: unsafe-perm in lifecycle truebuild: PATH: /usr/share/npm/node_modules/npm-lifecycle/node-gyp-bin:/root/Minetrack/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin8 verwbose lifecycle [email protected]
9 verbose lifecycle [email protected]
build: CWD: /root/Minetrackbuild: Args: [10 silly lifecycle [email protected]
10 silly lifecycle '-c',
10 silly lifecycle 'eslint assets/js/*.js && parcel build assets/html/index.html --dist-dir dist'
10 silly lifecycle ]
11 silly lifecycle [email protected]
build: Returned: code: 1 signal: nullbuild: Failed to exec build script12 info lifecycle [email protected]
13 verbose stack Error: [email protected] build:
eslint assets/js/*.js && parcel build assets/html/index.html --dist-dir dist
13 verbose stack Exit status 1
13 verbose stack at EventEmitter. (/usr/share/npm/node_modules/npm-lifecycle/index.js:332:16)
13 verbose stack at EventEmitter.emit (events.js:375:28)
13 verbose stack at ChildProcess. (/usr/share/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:375:28)
13 verbose stack at maybeClose (internal/child_process.js:1055:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
14 verbose pkgid [email protected]
15 verbose cwd /root/Minetrack
16 verbose Linux 5.4.0-62-generic
17 verbose argv "/usr/local/bin/node" "/usr/bin/npm" "run" "build"
18 verbose node v14.17.3
19 verbose npm v6.14.4
20 error code ELIFECYCLE
21 error errno 1
22 error [email protected] build:
eslint assets/js/*.js && parcel build assets/html/index.html --dist-dir dist
22 error Exit status 1
23 error Failed at the [email protected] build script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]
The text was updated successfully, but these errors were encountered: