如何解决Vue 应用程序添加新的 Css 包模块解析失败
我有一个可用的现有 Vue 应用程序 (4.5.6)。作为更新 CSS 框架的一部分,我的 CSS nodule_modules 中有更多文件。当我安装更新并运行 npm run serve 时,我现在收到此错误,
> vue-cli-service serve
INFO Starting development server...
12% building 19/24 modules 5 active C:\gitlab\personal-vue-project\node_modules\webpack-dev-server\client\utils\getCurrentScriptSource.jsBrowserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
Why you should do it regularly:
https://github.com/browserslist/browserslist#browsers-data-updating
98% after emitting CopyPlugin
ERROR Failed to compile with 1 errors 17:17:50
error in ./node_modules/@abc/abc-css/dist/logo/favicon.ico
Module parse failed: Unexpected character '' (1:0)
You may need an appropriate loader to handle this file type,currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
(Source code omitted for this binary file)
我的 package.json
"devDependencies": {
"@vue/cli-plugin-babel": "~4.5.9","@vue/cli-plugin-eslint": "~4.5.9","@vue/cli-plugin-router": "^4.5.9","@vue/cli-service": "~4.5.9","babel-eslint": "^10.1.0","babel-plugin-prismjs": "^2.0.1","cypress": "^4.12.1","eslint": "^6.8.0","eslint-plugin-vue": "^6.2.2","less": "^3.12.2","less-loader": "^7.1.0","start-server-and-test": "^1.11.6","vue-template-compiler": "^2.6.12","snyk": "^1.427.0"
}
我想要任何帮助来解决这个问题。我真的被这个问题困住了
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。