- This topic has 7 replies, 3 voices, and was last updated 6 years, 7 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
November 14, 2018 at 7:14 am #602816
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,
BartekNovember 15, 2018 at 1:41 pm #602912
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,
SalNovember 20, 2018 at 9:09 am #603230
LeonardoParticipantI deleted everything and restarted. Now I get:
/bin/bash: node_modules/angular-ide/bin/ng: Permission denied
I’m lost
November 20, 2018 at 9:42 am #603237
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,
SalNovember 20, 2018 at 11:42 am #603241
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
November 20, 2018 at 12:30 pm #603243
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,
SalNovember 20, 2018 at 12:50 pm #603248
LeonardoParticipantThat did it!!!! Thanks so much!
-
AuthorPosts