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 devH5 报错 #1

Open
caorenjie opened this issue Jul 16, 2018 · 7 comments
Open

npm run devH5 报错 #1

caorenjie opened this issue Jul 16, 2018 · 7 comments

Comments

@caorenjie
Copy link

caorenjie commented Jul 16, 2018

TypeError: Cannot read property 'compile' of undefined
at addCompilerHooks (F:\demo\wxH5sudoku469\node_modules_webpack-dev-server@3.1.4@webpack-dev-server\lib\Server.js:7
1:16)
at new Server (F:\demo\wxH5sudoku469\node_modules_webpack-dev-server@3.1.4@webpack-dev-server\lib\Server.js:81:5)
at startDevServer (F:\demo\wxH5sudoku469\node_modules_webpack-dev-server@3.1.4@webpack-dev-server\bin\webpack-dev-s
erver.js:398:14)
at processOptions (F:\demo\wxH5sudoku469\node_modules_webpack-dev-server@3.1.4@webpack-dev-server\bin\webpack-dev-s
erver.js:361:5)
at
at process._tickCallback (internal/process/next_tick.js:188:7)
at Function.Module.runMain (module.js:695:11)
at startup (bootstrap_node.js:191:16)
at bootstrap_node.js:612:3

@p0301y
Copy link

p0301y commented Jul 16, 2018

降级webpack-dev-server的版本,我试过了“^2.0.0”可用

@caorenjie
Copy link
Author

感谢楼下,确实如此。

@caorenjie
Copy link
Author

@p0301y 降级之后使用npm run build 后在小程序上报错,你有遇到吗

@Aimee1608
Copy link
Owner

仔细检查 安装的各个版本号啊 特别是 webpack 的版本

@JuniorZL
Copy link

通配符打包成小程序的时候会报错,怎么处理的呢?

@hawtim
Copy link

hawtim commented Nov 5, 2018

通配符打包成小程序的时候会报错,怎么处理的呢?

+1 同求解

@haoygit
Copy link

haoygit commented Nov 21, 2018

你好,你这个错解决了吗?我的降级了之后还是会报错

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

6 participants