-
Notifications
You must be signed in to change notification settings - Fork 559
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
博主我有一个疑问 #4
Comments
我明白前面话的意思,但是我不懂 |
大牛,我明白之前话的意思,也按照你的意思install 了http-server,但请问下下面的步骤是什么吗? |
在 /dist 目录下运行命令 Starting up http-server, serving ./
Available on:
http://172.18.30.95:8080
http://127.0.0.1:8080 然后你在浏览器中访问它输出给你的 http 地址 就像上面的 |
谢谢大牛!我跑起来了!!! |
大神有时间能把Build打包后上线流程写一下么,我也遇到那个朋友相同的问题,上传到服务器后,不改index路径的话,会有路径问题,改了路径又有 Error: Loading chunk 3 failed. 这个问题,小白实在是不知道从何入手去修改了 |
你需要了解webpack的output.publicPath解决路径问题,修改config/index.js里的build对象 |
感谢指导,成功的解决了问题 需要将 assetsPublicPath: '/' 改成assetsPublicPath: './' 再次感谢 |
我在我的webpack.base.conf里面加了{ |
chalk装上 项目也跑不起来
module.js:550 Error: Cannot find module 'chalk' |
查看node_modules,确认里面有没有 chalk
lxx <[email protected]> 于2018年11月9日周五 下午2:37写道:
… chalk装上 项目也跑不起来
vue-WeChat-master>npm run dev
***@***.*** dev D:\Front\vue-WeChat-master
node build/dev-server.js
module.js:550
throw err;
^
Error: Cannot find module 'chalk'
at Function.Module._resolveFilename (module.js:548:15)
at Function.Module._load (module.js:475:25)
at Module.require (module.js:597:17)
at require (internal/module.js:11:18)
at Object. (D:\Front\vue-WeChat-master\build\check-versions.js:1:75)
at Module._compile (module.js:653:30)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! ***@***.*** dev: node build/dev-server.js
npm ERR! Exit status 1
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#4 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AJQ-tvBahcPhXMiOqUyM6kUDZwclCdQuks5utSK3gaJpZM4MZQCN>
.
|
@githublxx 这个bug 是window 独有的, |
大牛,在浏览器中没有办法发送消息,是只能在手机上发送,电脑上没办法发送嘛,还是没有做发送的功能啊 |
就是我通过npm run build,然后再本地打开dist文件下面的index.html,会发现js和css引得路径出错,然后我将它们改为正确路径,但是还是提示
GET http://localhost:63342/static/js/3.42d1c4d5ecba6bf82e4b.js ;
Error: Loading chunk 3 failed.
at HTMLScriptElement.a (bootstrap 0cbc91a…:91)
这些错误是什么原因呢?目前就是底边栏的4个选择都出来了,就是大的页面显示不出来
The text was updated successfully, but these errors were encountered: