Giter Club home page Giter Club logo

Comments (12)

Sqrrl avatar Sqrrl commented on May 16, 2024 1

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.

Sqrrl avatar Sqrrl commented on May 16, 2024

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.

hermanc-fda avatar hermanc-fda commented on May 16, 2024

No prob, lemme try now. Mac OS Catalina. No need to apologize - I paid you nothing for it :)

from storybook-design-token.

hermanc-fda avatar hermanc-fda commented on May 16, 2024

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.

hermanc-fda avatar hermanc-fda commented on May 16, 2024

image

from storybook-design-token.

Sqrrl avatar Sqrrl commented on May 16, 2024

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.

hermanc-fda avatar hermanc-fda commented on May 16, 2024

Looks like the compile error is gone - thanks. I'm also getting this: any ideas?

image

I followed the trace and got here:

image

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.

hermanc-fda avatar hermanc-fda commented on May 16, 2024

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.

Sqrrl avatar Sqrrl commented on May 16, 2024

Could you post the content of your __design-tokens.scss?

from storybook-design-token.

hermanc-fda avatar hermanc-fda commented on May 16, 2024

I cut it down to this and it's still throwing the error:

image

/**

$color-base-accents-blue: #0033a1;

from storybook-design-token.

Sqrrl avatar Sqrrl commented on May 16, 2024

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.

Sqrrl avatar Sqrrl commented on May 16, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.