課程
/前端開發
/JavaScript
/TypeScript封裝播放器組件
run build后報錯
2020-11-11
源自:TypeScript封裝播放器組件 2-1
正在回答
需要看下具體報錯情況的截圖,如果完全按照視頻做的話~可以指定安裝跟視頻一樣的版本再試試
是的,運行不起來,直接報錯了
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 回答npm run build 以后報錯 如下
1 回答 [email protected] build: `webpack --config webpack.config.js`
2 回答引入a.css后運行失敗,一直報錯
2 回答this.tempContainer.style.width報錯
1 回答this.settings.content(popupContent)報錯
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2020-11-11
需要看下具體報錯情況的截圖,如果完全按照視頻做的話~可以指定安裝跟視頻一樣的版本再試試
2021-01-16
是的,運行不起來,直接報錯了
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