Vue3 webpack5 项目启动报错module property was removed from Dependency

一、启动新项目时Vue3,webpack5 项目启动报错module property was removed from Dependency,12%是个坎

        查了下资料原因是Looks like they are working on adding webpack 5 support to vue3. I'll update this answer once it is released.For now a workaround will be just to downgrade to version 4 ,大致意思应该是4版本对Vue3支持的很好吧。。英语不太好

        "webpack": "^4.42.0" 版本指定到4即可正常启动项目

二、顺便补充一下webpack常用命令

        全局安装 npm install webpack -g

        查看当前webpack版本 npm info webpack

        安装指定版本 npm install [email protected] --save-dev

你可能感兴趣的:(Vue3 webpack5 项目启动报错module property was removed from Dependency)