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

打包后运行报错 #121

Open
HongZhiXin opened this issue Jul 18, 2024 · 2 comments
Open

打包后运行报错 #121

HongZhiXin opened this issue Jul 18, 2024 · 2 comments

Comments

@HongZhiXin
Copy link

事先看了gitee上的同一个问题的回答,已经重新使用npm安装了node_modules包括前端的。
环境:win11
前端:umi(react)
image

@wallace5303
Copy link
Collaborator

插件模块,或配置,有没有删改东西

@shanzhaozhen
Copy link

同问这个问题,如果我打包配置为publicPath:'/',那么我全部路由气质都得调整修改,而我使用默认的'/'的话,会根据我安装的路径不一样导致前端页面的路径拿不到(例如我安装路径为C://project/public/dist,最终页面访问'/abc.js’,即是'c://abc.js',并不是页面的C://project/public/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

3 participants