Weird diff when running '@analogjs/storybook-angular:start-storybook' via ng or nx #1941
Closed
RobbyRabbitman
started this conversation in
General
Replies: 2 comments 2 replies
-
|
That plugin shouldn't be needed anymore because Storybook 10 is ESM-only now and can be removed. |
Beta Was this translation helpful? Give feedback.
2 replies
-
|
Fixed in |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Followed https://analogjs.org/docs/integrations/storybook and get this error when running the nx task:
However, when you copy this task in a
angular.jsonand then execute it viangit works....Maybe this is due to the nx task being executed in the root of the nx workspace, however idk how to run this task in a different directory - usually there is a 'cwd' flag or something but the schema does not allow it.
Also, I looked into https://github.com/analogjs/analog/blob/v2.0.3/packages/vite-plugin-angular/src/lib/angular-storybook-plugin.ts but I fail to understand why this is needed, because the error kind of makes sense right - there is no export specifying
"./dist/client/index.js"Workaround:
Patch
@storybook/angularexports to contain:"./dist/client/index.js": "./dist/client/index.js"versions:
Can anyone help pls? :D
Beta Was this translation helpful? Give feedback.
All reactions