-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
[Bug]: Styling and CSS (Uncaught TypeError: __webpack_require__.n is not a function) #19981
Comments
Seems to be fixed with last version of nx and storybook libraries. |
I run |
FYI: For us usage of version |
Same here; 15.2.4 fixed it. |
I can confirm that the described issue is resolved using the latest versions. |
The bug reappeared when I migrated to latest nx: @LukasMachetanz can you please re-open? |
We probably need to patch this back to 6.5 also @valentinpalkovic WDYT? |
@shilman @valentinpalkovic can you please re-open the issue to be sure we track this? |
@samvloeberghs it's patched back here. can you please test? https://github.com/storybookjs/storybook/releases/tag/v6.5.15-alpha.1 |
@shilman @samvloeberghs for me it works! Let's migrate all Angular Material Components from legacy to v15 now :D |
Nice!! I'll do a full release now |
@shilman |
@samvloeberghs, sorry for reopening the issue so late. It seems that the problem is resolved again and that the issue can be closed, right? |
Describe the bug
Having a storybook-configuration with custom styles within an nx-workspace throws an unexpected error within the browser console - see screenshot.
Using Cypress together with storybook results in failing test suite of the e2e specs as an uncaught exception is thrown due to this bug.
To Reproduce
npx create-nx-workspace my-workspace
nx g @nrwl/angular:lib my-lib
cd libs/my-lib/src/lib
andnx g @nrwl/angular:c my-comp
nx g @nrwl/angular:storybook-configuration my-lib
(all questions can be answered with yes)styles.scss
and include it within the sectionbuild:storybook
ofproject.json
as explained in Styling and CSS -"styles": ["libs/my-lib/src/styles.scss"]
nx run my-lib:storybook
The text was updated successfully, but these errors were encountered: