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

打包报错 #7468

Open
tr-text opened this issue Dec 3, 2024 · 1 comment
Open

打包报错 #7468

tr-text opened this issue Dec 3, 2024 · 1 comment

Comments

@tr-text
Copy link

tr-text commented Dec 3, 2024

Version

5.0.8

Reproduction link

cli.vuejs.org

Environment info

docker 打包时总是停在INFO  Check out deployment instructions at https://cli.vuejs.org/guide/deployment.html,不在往下走。
在vue.config.js中加上publicPath之后,会报错
  Invalid options in vue.config.js: "publicPath" is not allowed

Steps to reproduce

RUN npm run build 4522.3s
=> => # dist/css/chunk-04a0ad48.7f5d345c.css 0.07 kb 0.08 kb
=> => # dist/css/chunk-4a779d88.0b833884.css 0.00 kb 0.02 kb
=> => # Images and other types of assets omitted.
=> => # DONE Build complete. The dist directory is ready to be deployed.
=> => # INFO Check out deployment instructions at https://cli.vuejs.org/guide/deployment.html

What is expected?

docker build 成功

What is actually happening?

docke打包时,执行到npm run build报错


RUN npm run build 4522.3s
=> => # dist/css/chunk-04a0ad48.7f5d345c.css 0.07 kb 0.08 kb
=> => # dist/css/chunk-4a779d88.0b833884.css 0.00 kb 0.02 kb
=> => # Images and other types of assets omitted.
=> => # DONE Build complete. The dist directory is ready to be deployed.
=> => # INFO Check out deployment instructions at https://cli.vuejs.org/guide/deployment.html

@tr-text tr-text changed the title cue/cli打包报错 打包报错 Dec 3, 2024
@tr-text
Copy link
Author

tr-text commented Dec 5, 2024

按照官网执行了命令npm install -g serve和serve -s dist也不起作用

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