Skip to content

[Angular] The path "**.css" is not exported by the package #2119

@oscarls9

Description

@oscarls9

Provide a general summary of the issue here

When we try to install themes like:
import @sl-design-system/sanoma-learning/light.css it says the path is not exported by the package

Image

🤔 Expected Behavior?

It should allow you to import it directly from the file or probably just with: @sl-design-system/sanoma-learning

😯 Current Behavior

It doesn't let you import it in that way throwing an error:

Image

💁 Possible Solution

Exporting files in the package.json from the theme/package. I've seen that it's happening in sanoma-learning theme, however it might also happening in the rest of the themes.

🖥️ Steps to Reproduce

  1. I created a new test angular project
  2. Installed theme dep
  3. Added to the angular.json file in the styles array

Then the error appears when I try to run it. It also happens if we try to import it in a html file. Actually the only possible thing is to import it through node_modules/@sl.... etc.

We actually use editorial-suite, bingel-dc, sanoma-learning themes.

What browsers are you seeing the problem on? (only for bugs in code)

Chrome

If other, please specify.

No response

What operating system are you using?

Windows

👤 Your name

Óscar Ledesma

🧢 Your product/team

Pokemon

🎨 Your Theme(s)

Editorial Suite

Metadata

Metadata

Labels

Type

Projects

Status

✈️ Released

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions