facebook

Can't compile (postcss-loader)

  1. CodeMix & Angular IDE
  2.  > 
  3. Getting Help
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #602808 Reply

    Leonardo
    Participant

    After 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

    #602816 Reply

    Hi 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

    #602912 Reply

    Hi 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

    #603230 Reply

    Leonardo
    Participant

    I deleted everything and restarted. Now I get:

    /bin/bash: node_modules/angular-ide/bin/ng: Permission denied

    I’m lost

    #603237 Reply

    Hi 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

    #603241 Reply

    Leonardo
    Participant

    1. 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 IDE

    3. Running ng build works fine

    #603243 Reply

    Hi 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

    #603248 Reply

    Leonardo
    Participant

    That did it!!!! Thanks so much!

Viewing 8 posts - 1 through 8 (of 8 total)
Reply To: Can't compile (postcss-loader)

You must be logged in to post in the forum log in