import common from './css/common.css'; import layer from './components/layer/layer.js'; import './css/module.less'; const App = function () { console.log(layer); } new App();
如果在css中引入就不会报错,但是只要这么引入就会报错 cannot find module 'less'
楼主有报这个错吗?我安装less和less-loader会报以下的错
less-loader没有安装吧