- This topic has 7 replies, 3 voices, and was last updated 5 years, 12 months ago by Leonardo.
-
AuthorPosts
-
LeonardoParticipantAfter I did some changes to my project stopped working. The message is:
Time: 44966ms
chunk {main} main.js, main.js.map (main) 471 kB [initial] [rendered]
chunk {polyfills} polyfills.js, polyfills.js.map (polyfills) 246 kB [initial] [rendered]
chunk {runtime} runtime.js, runtime.js.map (runtime) 6.08 kB [entry] [rendered]
chunk {scripts} scripts.js, scripts.js.map (scripts) 84.9 kB [rendered]
chunk {styles} styles.js, styles.js.map (styles) 1.27 MB [initial] [rendered]
chunk {vendor} vendor.js, vendor.js.map (vendor) 5.69 MB [initial] [rendered]ERROR in ./src/styles.css (./node_modules/@angular-devkit/build-angular/src
/angular-cli-files/plugins/raw-css-loader.js!./node_modules/postcss-loader/
src??embedded!./src/styles.css)
Module build failed (from ./node_modules/postcss-loader/src/index.js)
Error: ENOENT: no such file or directory, open ‘/assets/css/custom/style.css’The file style.css exists and the error is thrown at the very end of the process
Bartłomiej ŁączkowskiModeratorHi Leonardo,
I’m sorry you are running into this issue. We are taking a closer look at it and will get back to you with some responses as soon as possible.
With best regards,
Bartek
Salvador CabreraMemberHi Leonardo,
Yes, seems like Angular is not finding your css file.
Have you tried changing the @import path from
/assets/css/custom/style.css
to../assets/css/custom/styles.css
in your “/src/styles.css” file ?Try creating a “custom.css” file in “/src” and importing it in your “/src/styles.css” this way:
@import './custom.css';
Does it throws errors too?Let me know if it works.
Cheers,
Sal
LeonardoParticipantI deleted everything and restarted. Now I get:
/bin/bash: node_modules/angular-ide/bin/ng: Permission denied
I’m lost
Salvador CabreraMemberHi Leonardo,
In order to help you with your problem, please provide the following information:
1.- What are the steps that you took to get/bin/bash: node_modules/angular-ide/bin/ng: Permission denied
? did you try launching the application using Server View ?2.- You mentioned that you have
deleted everything
, do you mean Eclipse, the project or both? Any chance you have run created the project or ran npm as superuser ?
3.- Does running
ng build
on Terminal+ for the project works as expected?Cheers,
Sal
LeonardoParticipant1. From the Servers view select “Start Server” and I get the error
2. – I deleted the project including files
– I restarted Eclipse
– From the GIT Repository view I cloned my project from bitbucket (project works fine on another machine)
– Imported the project into the IDE3. Running ng build works fine
Salvador CabreraMemberHi Leonardo,
Can you try reinstalling angular-ide package, just run:
npm uninstall -D angular-ide && npm i -D angular-ide
Please let me know how it goes.
Cheers,
Sal
LeonardoParticipantThat did it!!!! Thanks so much!
-
AuthorPosts