关注JEECG发展历程 关注最新动态和版本, 记录JEECG成长点滴 更新日志 - 技术支持 - 招聘英才

JEECG最新版本下载 JEECG智能开发平台 - 显著提高开发效率 常见问题 - 入门视频 - 参与开源团队

商务QQ: 69893005、418799587 商务热线(5*8小时): 010-64808099 官方邮箱: jeecgos@163.com

查看: 12560|回复: 1

前端启动一直报错

[复制链接]
发表于 2022-1-20 15:09:58 | 显示全部楼层 |阅读模式
前端启动报错,前端启动一直报错,怎么处理都解决不了,真心累,求大神指点,
yarn run v1.22.5
warning package.json: "dependencies" has dependency "compression-webpack-plugin" with range "^9.2.0" that collides with a dependency in "devDependencies" of the same name with version "^1.1.12"
$ vue-cli-service serve
ERROR  TypeError: Cannot read property 'version' of undefined
TypeError: Cannot read property 'version' of undefined
    at module.exports (C:\Users\WilliamLuo\AppData\Roaming\npm\node_modules\@vue\cli-plugin-eslint\index.js:20:27)
    at C:\Users\WilliamLuo\AppData\Roaming\npm\node_modules\@vue\cli-service\lib\Service.js:78:7
    at Array.forEach (<anonymous>)
    at Service.init (C:\Users\WilliamLuo\AppData\Roaming\npm\node_modules\@vue\cli-service\lib\Service.js:76:18)
    at Service.run (C:\Users\WilliamLuo\AppData\Roaming\npm\node_modules\@vue\cli-service\lib\Service.js:215:10)
    at Object.<anonymous> (C:\Users\WilliamLuo\AppData\Roaming\npm\node_modules\@vue\cli-service\bin\vue-cli-service.js:36:9)
    at Module._compile (internal/modules/cjs/loader.js:1063:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
    at Module.load (internal/modules/cjs/loader.js:928:32)
    at Function.Module._load (internal/modules/cjs/loader.js:769:14)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.


发表于 2022-2-11 13:50:23 | 显示全部楼层
compression-webpack-plugin版本太高,降级一下
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表