Skip to content

Application bundle generation failed. [2.146 seconds] [ERROR] Could not resolve "src/assets/css/styles.css" #29610

@mbonilla17

Description

@mbonilla17

Command

run

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

no

Description

Please help, how can I fix this issue? After entering this command on Visual studio code, ng serve
I got this message:
Component HMR has been enabled.
If you encounter application reload issues, you can manually reload the page to bypass HMR and/or disable this feature with the --no-hmr command line option.
Please consider reporting any issues you encounter here: https://github.com/angular/angular-cli/issues
Application bundle generation failed. [2.599 seconds]
X [ERROR] Could not resolve "src/assets/css/styles.css"
angular:styles/global:styles:1:8:
1 │ @import 'src/assets/css/styles.css';
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
You can mark the path "src/assets/css/styles.css" as external to exclude it from the bundle, which will remove this error and leave the unresolved path in the bundle.
Watch mode enabled. Watching for file changes.

Minimal Reproduction

Please help me on how can I fix this issue.
Thanks.

Exception or Error


Your Environment

ng serve

Anything else relevant?

no

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions