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

打包报错,无法生成build 文件夹 #19

Open
elive777 opened this issue Jul 10, 2018 · 3 comments
Open

打包报错,无法生成build 文件夹 #19

elive777 opened this issue Jul 10, 2018 · 3 comments

Comments

@elive777
Copy link

elive777 commented Jul 10, 2018

fallbackLoader option has been deprecated - replace with "fallback"
loader option has been deprecated - replace with "use"
10% building modules 2/2 modules 0 active
Project is running at http://0.0.0.0:8083/
webpack output is served from /./build/
404s will fallback to /index.html 25% building modules 131/144 modules 13 active ...ode_modules/style-loader/addStyles.js(node:50466) DeprecationWarning: loaderUtils.parseQuery() received a non-string value which can be problematic, see webpack/loader-utils#56
parseQuery() will be replaced with getOptions() in the next major version of loadHash: 22ecdb8a9d25685f8a0e
Version: webpack 2.7.0
:::::::
ERROR in build.f616bace8f64987da310.js from UglifyJs
Unexpected token: punc (() [build.f616bace8f64987da310.js:1641,9]

@elive777 elive777 changed the title 打包报错,无法生成build 页面 打包报错,无法生成build 文件夹 Jul 10, 2018
@yujinjin
Copy link
Owner

yujinjin commented Jul 11, 2018

@elive777
从错误日志上看是webpack配置方面的错误。
可能以下问题造成:
1.确认一下当前项目的webpack版,该项目的版本是2
2.webpack配置是不是有做过修改
3.确认一下nodejs版本

@elive777
Copy link
Author

default

你好,webpack 我用了 2.7 跟 2.2 都这样。唯一的区别就是 2.2 版本会多加载一些模块才报错。 配置是直接拿下来 就npm run R_DEV 没调整过。 各个版本请看看截图。

@yujinjin
Copy link
Owner

@elive777
是不是仅build是不正常的,R_DEV就正常?
如果是这种情况,是不是运行的项目是在C盘没有文件添加权限导致,尝试在D盘。
噢,如果是MAC系统请用MB_DEV

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

2 participants