webpack error in Cannot find module 'less'

后端 未结 8 1318
渐次进展
渐次进展 2021-02-03 21:30

I\'m trying to use less loader in webpack and the issues is - I\'ve installed less loader locally, but when I try to compile everything using webpack command in bask, it prints

8条回答
  •  囚心锁ツ
    2021-02-03 22:07

    I had the same issue with a .Net Core project. I resolved this by adding less to my package.json file as well as less-loader.

    "less-loader": "2.2.3",
    "less": "2.7.2"
    

提交回复
热议问题