简体   繁体   English

错误:找不到模块:错误:无法解析 src/app/app.component.css?ngResource Angular

[英]Error: Module not found: Error: Can't resolve src/app/app.component.css?ngResource Angular

I'm facing this 3 problems that I still can't understand where your mistakes are.我面临这 3 个问题,我仍然无法理解你的错误在哪里。

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'错误:找不到模块:错误:无法在“C:\Users\DexSh\desktop\”中解析“C:/Users/DexSh/desktop/C# Angular/Testing/src/app/app.component.css?ngResource” C# 角度\测试'

Error: Module not found: Error: Can't resolve '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' in 'C:\Users\DexSh\desktop\C# Angular\Testing'错误:找不到模块:错误:无法解析 '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'

Error: The loader "C:/Users/DexSh/desktop/C# Angular/Testing/src/app/app.component.css" didn't return a string.错误:加载器“C:/Users/DexSh/desktop/C# Angular/Testing/src/app/app.component.css”没有返回字符串。

when using ng build returns this当使用 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.

Can anyone tell me what's causing this, it's in every project谁能告诉我是什么原因造成的,每个项目都有

Waiting for a normal build and project execution等待正常构建和项目执行

The problem is that you have a # in your folder name -> (C# Angular).问题是您的文件夹名称中有一个 # -> (C# Angular)。 This f.这个 f。 problem made me to go on rampage too...问题也让我 go 横冲直撞......

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 未找到 ./src/App.jsx 模块中的错误:错误:无法解析“./component/Footer” - ERROR in ./src/App.jsx Module not found: Error: Can't resolve './component/Footer' 找不到Angular2 / 4模块:错误:无法解析“ .. \\ app”中的“三个”在解析“ .. \\ app”中的“三个” - Angular2/4 Module not found: Error: Can't resolve 'three' in '..\app' resolve 'three' in '..\app' 未找到模块,无法解决 Angular 中的错误 - Module not found, Can't resolve error in Angular 找不到模块:错误:无法解析'./$$_gendir/app/app.module.ngfactory' - Module not found: Error: Can't resolve './$$_gendir/app/app.module.ngfactory' in 在 Heroku 上构建:./src/reportWebVitals.js - 找不到模块:无法解析“/app/src”中的“web-vitals” - Building on the Heroku : ./src/reportWebVitals.js - Module not found: Can't resolve 'web-vitals' in '/app/src' 找不到模块:错误:无法解析$$ _ gendir \\ app \\ item-receive-return.module.ngfactory.ts' - Module not found: Error: Can't resolve $$_gendir\app\item-receive-return.module.ngfactory.ts' Docker-无法解析'/ usr / src / app / src'中的节点模块 - Docker - Can't resolve node module in '/usr/src/app/src' 找不到模块:错误:无法解析“css-loader” - Module not found: Error: Can't resolve 'css-loader' Angular 构建 - 找不到模块:错误:无法解析“控制台” - Angular build - Module not found: Error: Can't resolve 'console' ./ClientApp/boot.server.ts中的错误找不到模块:错误:无法解析'./../$$_gendir/ClientApp/app/app.app.server.module.ngfactory' - ERROR in ./ClientApp/boot.server.ts Module not found : error : Can't resolve './../$$_gendir/ClientApp/app/app.server.module.ngfactory'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM