課程
/前端開發(fā)
/前端工具
/webpack深入與實戰(zhàn)
layer is not a constructor 問題可以直接在layer.js中去掉export default layer,把 export加到function前邊
2017-05-05
源自:webpack深入與實戰(zhàn) 4-6
正在回答
將聲明小寫的layer改成不和new layer()中的layer相同的命名則可:例如var Layer = new layer();
沒有解決
layer,把需要引用的layer大寫Layer
還是不行。。。layer is not a constructor
舉報
webpack實戰(zhàn)教程,用真實項目帶你探索 webpack 強大的功能
9 回答控制臺報錯 layer is not a constructor ,該節(jié)未通過,求幫助
1 回答TypeError:template.indexof is not a function
3 回答ERROR in ./src/css/common.css Module build failed: TypeError: loaderUtils.getOptions is not a function
1 回答require is not defined
4 回答import layer from './components/layer/layer.js'; 報錯?
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網(wǎng)安備11010802030151號
購課補貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動學習伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號
2017-09-04
將聲明小寫的layer改成不和new layer()中的layer相同的命名則可:例如var Layer = new layer();
2017-06-09
沒有解決
2017-05-31
layer,把需要引用的layer大寫Layer
2017-05-18
還是不行。。。layer is not a constructor