-
Notifications
You must be signed in to change notification settings - Fork 12k
Module not found: Error: Can't resolve './' #4883
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
#4778 maybe? |
Are there any imports or url()'s in the stylesheet in question? |
yes, remove background-image: url(""); from css did solve my issue. |
Any fix does not involve removing background-image: url("")? Setting images to url("/assets/images/...") stops it from breaking and works with ng-serve but does not make the correct route change when building to production. |
Closing as answered. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
OS?
Versions.
Repro steps.
npm uninstall -g angular-cli @angular/cli
npm cache clean
npm install -g @angular/cli@latest
ng new sample
copied app folder from old-sample to new sample
ng serve
The log given by the failure.
ERROR in ./src/app/user/reset-password/reset.password.component.css
Module not found: Error: Can't resolve './' in 'C:\webweb\src\app\user
t\reset-password'
@ ./src/app/user/reset-password/reset.password.component.css 6:353-3
66
@ ./src/app/user/reset-password/reset-password.component.ts
@ ./src/app/user/index.ts
@ ./src/app/app.module.ts
@ ./src/main.ts
@ multi webpack-dev-server/client?http://localhost:4200/ ./src/main.ts
ERROR in ./src/app/user/login/login.test.component.css
Module not found: Error: Can't resolve './' in 'C:\webweb\src\app\user\login'
@ ./src/app/user/login/login.test.component.css 6:363-376
@ ./src/app/usert/login/login.test.component.ts
@ ./src/app/user/index.ts
@ ./src/app/app.module.ts
@ ./src/main.ts
@ multi webpack-dev-server/client?http://localhost:4200/ ./src/main.ts
ERROR in ./src/app/user/forgot-password/forgot-password.component.css
Module not found: Error: Can't resolve './' in 'C:\webweb\src\app\user\forgot-password'
@ ./src/app/user/forgot-password/forgot-password.component.css 6:353
-366
@ ./src/app/user/forgot-password/forgot-password.component.ts
@ ./src/app/user/index.ts
@ ./src/app/app.module.ts
@ ./src/main.ts
@ multi webpack-dev-server/client?http://localhost:4200/ ./src/main.ts
Mention any other details that might be useful.
this error started when i did upgrade angular/cli
i thought the errors could be as a result of referencing css
changed and swap between the following but still didnt work
The text was updated successfully, but these errors were encountered: