Comments (12)
Just released v0.7.2 that should fix the issue. Would be great if you could verify. Sorry for the hassle.
from storybook-design-token.
Hey, I renamed some stuff recently. Looks like a case sensitivity problem with the repo and git. What OS are you using?
from storybook-design-token.
No prob, lemme try now. Mac OS Catalina. No need to apologize - I paid you nothing for it :)
from storybook-design-token.
hmmm same problem; also get a similar error (I got this error before too):
ERROR in /xxx/node_modules/storybook-design-token/dist/components/HardCodedValuesTable.js
Module not found: Error: [CaseSensitivePathsPlugin] /xxx/node_modules/storybook-design-token/dist/components/primitives/Card.js
does not match the corresponding path on disk Primitives
.
@ /xxx/node_modules/storybook-design-token/dist/components/HardCodedValuesTable.js 4:13-41
ERROR in /xxx/node_modules/storybook-design-token/dist/components/TokenOverview.js
Module not found: Error: [CaseSensitivePathsPlugin] /xxx/node_modules/storybook-design-token/dist/components/primitives/Card.js
does not match the corresponding path on disk Primitives
.
@ /xxx/node_modules/storybook-design-token/dist/components/TokenOverview.js 16:13-41
ERROR in /xxx/node_modules/storybook-design-token/dist/components/HardCodedValuesTable.js
Module not found: Error: [CaseSensitivePathsPlugin] /xxx/node_modules/storybook-design-token/dist/components/primitives/Collapsible.js
does not match the corresponding path on disk Primitives
.
@ /xxx/node_modules/storybook-design-token/dist/components/HardCodedValuesTable.js 5:20-55
ERROR in /xxx/node_modules/storybook-design-token/dist/components/TokenOverview.js
Module not found: Error: [CaseSensitivePathsPlugin] /xxx/node_modules/storybook-design-token/dist/components/primitives/Collapsible.js
does not match the corresponding path on disk Primitives
.
@ /xxx/node_modules/storybook-design-token/dist/components/TokenOverview.js 17:20-55
and a few more
from storybook-design-token.
from storybook-design-token.
This is strange. The case sensitivity issue with directories primitives
and presenter
should be fixed. Could you delete your node_modules and make a clean install? Inside node_modules/storybook-design-token/dist/components
: Do you see the folders primitives
and presenter
or Primitives
and Presenter
?
from storybook-design-token.
Looks like the compile error is gone - thanks. I'm also getting this: any ideas?
I followed the trace and got here:
And my .scss file exists and has the proper annotations (it was working fine before).
I'm wondering if it has anything to do with the typeof css !== string condition, since css was, for whatever reason, undefined? !css is part of the else condition, so maybe that guard needs to be updated? Though I'm still unsure why the contents are undefined because the file exists.
from storybook-design-token.
If it helps, here is my preview.js:
`import { addParameters } from "@storybook/react";
const scssReq = require.context("!!raw-loader!../shared", true, /..scss$/);
const scssTokenFiles = scssReq
.keys()
.map(filename => ({ filename, content: scssReq(filename).default }));
addParameters({
options: {
showRoots: true
},
designToken: {
files: {
scss: scssTokenFiles
}
}
});
`
and my scss file is in the shared folder and it's valid.
from storybook-design-token.
Could you post the content of your __design-tokens.scss?
from storybook-design-token.
I cut it down to this and it's still throwing the error:
/**
- @tokens Colors
- @presenter Color
*/
$color-base-accents-blue: #0033a1;
from storybook-design-token.
Sorry, still cannot reproduce. Could you provide a reproduction repo? Are you using a custom webpack config? Maybe something is interfering with the loader.
from storybook-design-token.
@hermanc-fda I'm closing this for now. Please re-open if you think it's still broken.
from storybook-design-token.
Related Issues (20)
- issue with enabled feature buildStoriesJson HOT 1
- Allow Control Types Config (ArgTypes) HOT 1
- Issue starting storybook-design-token HOT 6
- Storybook webpack autobuild no longer works with storybook-design-token options HOT 7
- Is there a way to disable scrolling container in table view? HOT 1
- Dependencies on Vite should be optional
- Getting warnings during startup and usage of addon in v3 beta HOT 2
- Monorepo import Css injection not working
- Disabling addon panel does not work HOT 8
- ? HOT 1
- Hide search in doc pages?
- Missing "./dist/doc-blocks" specifier in "storybook-design-token" package? HOT 1
- Is there a way to only show the utilized Design Tokens in a given Story? HOT 5
- Getting React error when importing DesignTokenDocBlock HOT 1
- Issue with Managing Theme Switching HOT 2
- Storybook 8 compatibility HOT 4
- Tokens that change based on breakpoint do not update in the UI
- Tokens reset once the tab is re-selected
- Tokens that depend on other tokens don't work HOT 1
- Sizing Tokens
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from storybook-design-token.