【发布时间】:2018-08-15 23:25:17
【问题描述】:
我使用 webpacker 使用 Rails 和 Vue 创建了新项目。首先我遇到了奇怪的错误 Cannot read property 'compile' of undefined
所以我点击了yarn upgrade webpack-dev-server --latest,这是正确的答案并帮助了我,但是当我点击:./bin/webpack-dev-server 我的 webpack 开发服务器启动并且一切看起来都很好但在http://localhost:3035/ 我收到“无法获取 /”消息.
JS 控制台:Failed to load resource: the server responded with a status of 404
我也试过重新安装 webpacker...
【问题讨论】:
-
您确定它在 3035 上运行吗?默认情况下它运行在 8080
-
是的,控制台显示“项目正在localhost:3035 运行”如果你愿意,我可以从终端上传截图
标签: ruby-on-rails webpack vue.js webpack-dev-server