Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Storybook: fix CSS import to avoid CaseSensitivePathsPlugin error #37

Merged
merged 1 commit into from
Dec 17, 2021
Merged

Storybook: fix CSS import to avoid CaseSensitivePathsPlugin error #37

merged 1 commit into from
Dec 17, 2021

Conversation

julien-deramond
Copy link
Contributor

This PR is a proposal to be able to run Storybook locally. Hope it will not affect GitHub Pages.

$ npm run storybook

ERROR in ./src/stories/Test.stories.css (./node_modules/css-loader/dist/cjs.js??ref--12-1!./node_modules/postcss-loader/src??postcss!./src/stories/Test.stories.css)
Module not found: Error: [CaseSensitivePathsPlugin] `/Users/ju/IOT-Map-Component/src/iotmapmanager/iot-map-manager.css` does not match the corresponding path on disk `iotMapManager`.
 @ ./src/stories/Test.stories.css (./node_modules/css-loader/dist/cjs.js??ref--12-1!./node_modules/postcss-loader/src??postcss!./src/stories/Test.stories.css) 3:40-195
 @ ./src/stories/Test.stories.css
 @ ./src/stories/Test.stories.ts
 @ ./src sync ^\.(?:(?:^|\/|(?:(?:(?!(?:^|\/)\.).)*?)\/)(?!\.)(?=.)[^/]*?\.stories\.(js|jsx|ts|tsx))$
 @ ./.storybook/generated-stories-entry.js
 @ multi ./node_modules/@storybook/core/dist/server/common/polyfills.js ./node_modules/@storybook/core/dist/server/preview/globals.js ./.storybook/storybook-init-framework-entry.js ./node_modules/@storybook/addon-docs/dist/frameworks/common/config.js-generated-other-entry.js ./node_modules/@storybook/addon-docs/dist/frameworks/html/config.js-generated-other-entry.js ./node_modules/@storybook/addon-links/dist/preset/addDecorator.js-generated-other-entry.js ./node_modules/@storybook/addon-actions/dist/preset/addDecorator.js-generated-other-entry.js ./node_modules/@storybook/addon-actions/dist/preset/addArgs.js-generated-other-entry.js ./node_modules/@storybook/addon-backgrounds/dist/preset/addDecorator.js-generated-other-entry.js ./node_modules/@storybook/addon-backgrounds/dist/preset/addParameter.js-generated-other-entry.js ./node_modules/@storybook/addon-knobs/dist/preset/addDecorator.js-generated-other-entry.js ./.storybook/preview.js-generated-config-entry.js ./.storybook/generated-stories-entry.js (webpack)-hot-middleware/client.js?reload=true&quiet=false&noInfo=undefined

@sandrinegateau sandrinegateau merged commit de36e0c into Orange-OpenSource:master Dec 17, 2021
@julien-deramond julien-deramond deleted the master-jd-fix-run-storybook branch December 20, 2021 07:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants