suwu150 2017-04-12 02:04 采纳率: 20%
浏览 5160

使用windows系统时,webpack打包出错,提示需要一个表达式

helloworld_electron@1.0.0 webpack E:\webStromProject\ExperimentalBookingManagementSystem-fe
webpack

Hash: b8b8263db2c36e699d0b
Version: webpack 1.14.0
Time: 13483ms
Asset Size Chunks Chunk Names
bundle.js 14.4 MB 0 [emitted] main
+ 1169 hidden modules

WARNING in ./~/express/lib/view.js
Critical dependencies:
42:48-69 the request of a dependency is an expression
@ ./~/express/lib/view.js 42:48-69

WARNING in ./~/ws/lib/Validation.js
Module not found: Error: Cannot resolve module 'utf-8-validate' in E:\webStromProject\ExperimentalBookingManagementSystem-fe
\node_modules\ws\lib
@ ./~/ws/lib/Validation.js 10:22-47

WARNING in ./~/ws/lib/BufferUtil.js
Module not found: Error: Cannot resolve module 'bufferutil' in E:\webStromProject\ExperimentalBookingManagementSystem-fe\nod
e_modules\ws\lib
@ ./~/ws/lib/BufferUtil.js 35:21-42

WARNING in ./~/formidable/lib/incoming_form.js
Critical dependencies:
1:43-50 require function is used in a way in which dependencies cannot be statically extracted
@ ./~/formidable/lib/incoming_form.js 1:43-50

WARNING in ./~/formidable/lib/file.js
Critical dependencies:
1:43-50 require function is used in a way in which dependencies cannot be statically extracted
@ ./~/formidable/lib/file.js 1:43-50

WARNING in ./~/formidable/lib/querystring_parser.js
Critical dependencies:
1:43-50 require function is used in a way in which dependencies cannot be statically extracted
@ ./~/formidable/lib/querystring_parser.js 1:43-50

ERROR in ./~/express/index.js
Module not found: Error: Cannot resolve 'file' or 'directory' ./lib-cov/express in E:\webStromProject\ExperimentalBookingMan
agementSystem-fe\node_modules\express
@ ./~/express/index.js 3:4-32

ERROR in ./~/express/lib/view.js
Module not found: Error: Cannot resolve module 'fs' in E:\webStromProject\ExperimentalBookingManagementSystem-fe\node_module
s\express\lib
@ ./~/express/lib/view.js 6:9-22

ERROR in ./~/connect/lib-cov/connect.js
Module not found: Error: Cannot resolve module 'fs' in E:\webStromProject\ExperimentalBookingManagementSystem-fe\node_module
s\connect\lib-cov
@ ./~/connect/lib-cov/connect.js 32:162-175

ERROR in ./~/connect/lib/connect.js
Module not found: Error: Cannot resolve module 'fs' in E:\webStromProject\ExperimentalBookingManagementSystem-fe\node_module
s\connect\lib
@ ./~/connect/lib/connect.js 18:9-22

ERROR in ./~/send/lib/send.js
Module not found: Error: Cannot resolve module 'fs' in E:\webStromProject\ExperimentalBookingManagementSystem-fe\node_module
s\send\lib
@ ./~/send/lib/send.js 13:9-22

ERROR in ./~/connect/lib-cov/middleware/directory.js
Module not found: Error: Cannot resolve module 'fs' in E:\webStromProject\ExperimentalBookingManagementSystem-fe\node_module
s\connect\lib-cov\middleware
@ ./~/connect/lib-cov/middleware/directory.js 71:9-22

ERROR in ./~/connect/lib-cov/middleware/errorHandler.js
Module not found: Error: Cannot resolve module 'fs' in E:\webStromProject\ExperimentalBookingManagementSystem-fe\node_module
s\connect\lib-cov\middleware
@ ./~/connect/lib-cov/middleware/errorHandler.js 32:38-51

ERROR in ./~/connect/lib-cov/middleware/favicon.js
Module not found: Error: Cannot resolve module 'fs' in E:\webStromProject\ExperimentalBookingManagementSystem-fe\node_module
s\connect\lib-cov\middleware
@ ./~/connect/lib-cov/middleware/favicon.js 21:9-22

ERROR in ./~/connect/lib/middleware/directory.js
Module not found: Error: Cannot resolve module 'fs' in E:\webStromProject\ExperimentalBookingManagementSystem-fe\node_module
s\connect\lib\middleware
@ ./~/connect/lib/middleware/directory.js 17:9-22

ERROR in ./~/connect/lib/middleware/errorHandler.js
Module not found: Error: Cannot resolve module 'fs' in E:\webStromProject\ExperimentalBookingManagementSystem-fe\node_module
s\connect\lib\middleware
@ ./~/connect/lib/middleware/errorHandler.js 13:9-22

ERROR in ./~/connect/lib/middleware/favicon.js
Module not found: Error: Cannot resolve module 'fs' in E:\webStromProject\ExperimentalBookingManagementSystem-fe\node_module
s\connect\lib\middleware
@ ./~/connect/lib/middleware/favicon.js 13:9-22

ERROR in ./~/connect/lib-cov/middleware/cookieSession.js
Module not found: Error: Cannot resolve module 'crc' in E:\webStromProject\ExperimentalBookingManagementSystem-fe\node_modul
es\connect\lib-cov\middleware
@ ./~/connect/lib-cov/middleware/cookieSession.js 42:173-187

ERROR in ./~/connect/lib-cov/middleware/session.js
Module not found: Error: Cannot resolve module 'crc' in E:\webStromProject\ExperimentalBookingManagementSystem-fe\node_modules\connect\lib-cov\middleware
@ ./~/connect/lib-cov/middleware/session.js 92:310-324

ERROR in ./~/mime/mime.js
Module not found: Error: Cannot resolve module 'fs' in E:\webStromProject\ExperimentalBookingManagementSystem-fe\node_modules\mime
@ ./~/mime/mime.js 2:9-22

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥50 buildozer打包kivy app失败
    • ¥30 在vs2022里运行python代码
    • ¥15 不同尺寸货物如何寻找合适的包装箱型谱
    • ¥15 求解 yolo算法问题
    • ¥15 虚拟机打包apk出现错误
    • ¥15 用visual studi code完成html页面
    • ¥15 聚类分析或者python进行数据分析
    • ¥15 三菱伺服电机按启动按钮有使能但不动作
    • ¥15 js,页面2返回页面1时定位进入的设备
    • ¥50 导入文件到网吧的电脑并且在重启之后不会被恢复