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 and npm run serve errors #95

Open
reversingentropy opened this issue Apr 14, 2023 · 0 comments
Open

npm run build and npm run serve errors #95

reversingentropy opened this issue Apr 14, 2023 · 0 comments

Comments

@reversingentropy
Copy link

Hi, I have tried to npm run build but I get this error:

npm run build

[email protected] build
vue-cli-service build

All browser targets in the browserslist configuration have supported ES module.
Therefore we don't build two separate bundles for differential loading.

  • Building for production...

ERROR Error: Build failed with errors.
Error: Build failed with errors.
at C:\Program Files\node_modules\BFE2\node_modules@vue\cli-service\lib\commands\build\index.js:207:23
at C:\Program Files\node_modules\BFE2\node_modules\webpack\lib\webpack.js:148:8
at C:\Program Files\node_modules\BFE2\node_modules\webpack\lib\HookWebpackError.js:68:3
at Hook.eval [as callAsync] (eval at create (C:\Program Files\node_modules\BFE2\node_modules\tapable\lib\HookCodeFactory.js:33:10), :6:1)
at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (C:\Program Files\node_modules\BFE2\node_modules\tapable\lib\Hook.js:18:14)
at Cache.shutdown (C:\Program Files\node_modules\BFE2\node_modules\webpack\lib\Cache.js:150:23)
at C:\Program Files\node_modules\BFE2\node_modules\webpack\lib\Compiler.js:1225:15
at Hook.eval [as callAsync] (eval at create (C:\Program Files\node_modules\BFE2\node_modules\tapable\lib\HookCodeFactory.js:33:10), :6:1)
at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (C:\Program Files\node_modules\BFE2\node_modules\tapable\lib\Hook.js:18:14)
at Compiler.close (C:\Program Files\node_modules\BFE2\node_modules\webpack\lib\Compiler.js:1218:23)
at C:\Program Files\node_modules\BFE2\node_modules\webpack\lib\webpack.js:147:16
at finalCallback (C:\Program Files\node_modules\BFE2\node_modules\webpack\lib\Compiler.js:441:32)
at C:\Program Files\node_modules\BFE2\node_modules\webpack\lib\Compiler.js:458:13
at Hook.eval [as callAsync] (eval at create (C:\Program Files\node_modules\BFE2\node_modules\tapable\lib\HookCodeFactory.js:33:10), :24:1)
at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (C:\Program Files\node_modules\BFE2\node_modules\tapable\lib\Hook.js:18:14)
at onCompiled (C:\Program Files\node_modules\BFE2\node_modules\webpack\lib\Compiler.js:456:21)

When I use npm run serve I get this error:
RROR in ./src/assets/main.css (./node_modules/css-loader/dist/cjs.js??clonedRuleSet-14.use[1]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-14.use[2]!./src/assets/main.css) 30:37-101
Module not found: Error: Can't resolve '/fonts/validation-icons.svg?10592045' in 'C:\Program Files\node_modules\BFE2\src\assets'
@ ./src/assets/main.css 4:14-175 15:3-20:5 16:22-183
@ ./src/main.js 13:0-27

webpack compiled with 16 errors

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

1 participant