亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

為什么運行時報錯,代碼一樣,是版本不對的問題嗎

K:\workSpace\ty-demo>npm run build


> [email protected] build K:\workSpace\ty-demo

> webpack --config webpack.config.js


asset main.js 640 bytes [emitted] (name: main)


ERROR in main

Module not found: Error: Can't resolve './scr/main.js' in 'K:\workSpace\ty-demo'


webpack 5.15.0 compiled with 1 error in 49 ms

npm ERR! code ELIFECYCLE

npm ERR! errno 1

npm ERR! [email protected] build: `webpack --config webpack.config.js`

npm ERR! Exit status 1

npm ERR!

npm ERR! Failed at the [email protected] build script.

npm ERR! This is probably not a problem with npm. There is likely additional logging output above.


npm ERR! A complete log of this run can be found in:

npm ERR!? ? ?D:\Program Files\nodejs\node_cache\_logs\2021-01-16T02_19_30_021Z-debug.log


正在回答

1 回答

路徑寫錯了吧??./scr/main.js'


0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

為什么運行時報錯,代碼一樣,是版本不對的問題嗎

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號