![](/img/trans.png)
[英]ERROR in ./src/App.jsx Module not found: Error: Can't resolve './component/Footer'
[英]Error: Module not found: Error: Can't resolve src/app/app.component.css?ngResource Angular
我面临这 3 个问题,我仍然无法理解你的错误在哪里。
错误:找不到模块:错误:无法在“C:\Users\DexSh\desktop\”中解析“C:/Users/DexSh/desktop/C# Angular/Testing/src/app/app.component.css?ngResource” C# 角度\测试'
错误:找不到模块:错误:无法解析 'C:\Users\DexSh\desktop\C# Angular\Testing\node_modules\webpack-dev-server\client\index.js?protocol=auto%3A&username=&password=&hostname =0.0.0.0&port=0&pathname=%2Fng-cli-ws&logging=info&overlay=%7B%22errors%22%3Atrue%2C%22warnings%22%3Afalse%7D&reconnect=10&hot=false&live-reload=true' 在 'C:\Users \DexSh\desktop\C# Angular\Testing'
错误:加载器“C:/Users/DexSh/desktop/C# Angular/Testing/src/app/app.component.css”没有返回字符串。
当使用 ng build 返回这个
Warning: ▲ [WARNING] Comments in CSS use "/* ... */" instead of "//" [js-comment-in-css]
C:/Users/DexSh/desktop/C# Angular/Testing/src/app/app.component.css:1:18:
1 │ /******/ (() => { // webpackBootstrap
╵ ~~
Warning: ▲ [WARNING] Unexpected "(" [css-syntax-error]
C:/Users/DexSh/desktop/C# Angular/Testing/src/app/app.component.css:1:9:
1 │ /******/ (() => { // webpackBootstrap
╵ ^
Error: Module not found: Error: Can't resolve 'C:/Users/DexSh/desktop/C# Angular/Testing/src/app/app.component.css?ngResource' in 'C:\Users\DexSh\desktop\C# Angular\Testing'
Error: The loader "C:/Users/DexSh/desktop/C# Angular/Testing/src/app/app.component.css" didn't return a string.
谁能告诉我是什么原因造成的,每个项目都有
等待正常构建和项目执行
问题是您的文件夹名称中有一个 # -> (C# Angular)。 这个 f。 问题也让我 go 横冲直撞......
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.