adeo / mozaic-design-system

Mozaic Design System
https://mozaic.adeo.cloud
Apache License 2.0
73 stars 17 forks source link

Complex (bad) relative import of token SCSS file #775

Closed pinguet62 closed 1 year ago

pinguet62 commented 3 years ago

šŸž Pattern bug report

Where did you experience this bug ?

Is this a regression?

No.

Description

When I @import "@mozaic-ds/styles/settings-tools/all-settings"; I have an error because the (1st line) @import '_tokens.scss'; doesn't work... This require to configure includePaths of style loader in my project:

Do you have any solution to avoid this configuration? For example merge @mozaic-ds/styles with @mozaic-ds/tokens, or in _all-settings.scss use @import '@mozaic-ds/tokens/build/scss/tokens';, ...

šŸ”¬ Steps to reproduce the issue

vue create -d hello-world
cd hello-world
npm install @mozaic-ds/styles
npm run serve

set <style> in App.vue file

<style lang="scss">
@import "~@mozaic-ds/styles/settings-tools/all-settings";
</style>

šŸ“· Screenshot (optional - it might be a gif) or Sketch file (if existing)

šŸ”„ Exception or Error





šŸŒ Your Environment

Styleguide Version:





Anything else relevant?

ghost commented 2 years ago

Any news of this issue ? I have the same problem. How can I fix it ? Thanks

Maxim-Ishenko commented 2 years ago

I've the same problem with react. Could you share some info about it?

pinguet62 commented 1 year ago

Not really solved, is it?