Skip to content

Feature module @import "@spartacus/styles/index" ERROR #19907

Open
@Adam-Michalski

Description

@Adam-Michalski

How to include spartacus styles to use extends and include in feature module lib

Describe the bug
Feature module @import "@spartacus/styles/index" causes ERROR: Could not resolve "@ng-select/ng-select/themes/default.theme.css"

Tell us the version of Spartacus

  • Library version: ~2211.25.1

To Reproduce
Steps to reproduce the behavior:
Use in any style file import
@import "@spartacus/styles/index";

Expected behavior
Ability to extend spartacus classes without error
ERROR: Could not resolve "@ng-select/ng-select/themes/default.theme.css"
The path "./themes/default.theme.css" is not currently exported by package "@ng-select/ng-select":

Screenshots

Image

Additional context
I have tried

   "styleIncludePaths": [
      "../../node_modules/@ng-select/ng-select/themes/default.theme.css"
    ]

And importing it directly in scss file but it does not fix this error

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