TypeError: CleanwebpackPlugin is not a constructor

前端 未结 10 2098
感动是毒
感动是毒 2021-01-01 08:39

i\'m trying to preview a vue web application through webpack-server-dev.I\'m following this guide https://medium.com/the-web-tub/creating-your-first-vue-js-pwa-project-22f7

10条回答
  •  自闭症患者
    2021-01-01 09:05

    I am not very much familiar with webpack and currently learning it

    although this thing below helped me fix the issue

    I just uninstall clean-webpack-plugin and then reinstall as dependency before this i've intalled as a dev-dependency

    after uninstall and installing it like that : npm install --save clean-webpack-plugin

    and by adding this

    const { CleanWebpackPlugin } = require("clean-webpack-plugin");
    

    solved my issue!!

    hope it helps

提交回复
热议问题