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

[Bug]: Property 'webpackStatsJson' does not match the schema. 'false' should be a 'string'. #24512

Closed
peterhodges opened this issue Oct 18, 2023 · 0 comments · Fixed by #24494

Comments

@peterhodges
Copy link

Describe the bug

Following an upgrade to an Angular NX monorepo (just upgraded from 15.5->16.10.0), when running nx storybook <library-name>, we get:

NX Property 'webpackStatsJson' does not match the schema. 'false' should be a 'string'.

Not sure what's changed, but I found this ticket: #20296 which updated the schema to include both "string" and "json" for the build-storybook builder.

Making the same change in the start-storybook builder fixes the problem.

Here's the patch:

diff --git a/node_modules/@storybook/angular/.DS_Store b/node_modules/@storybook/angular/.DS_Store
new file mode 100644
index 0000000..e69de29
diff --git a/node_modules/@storybook/angular/dist/builders/start-storybook/schema.json b/node_modules/@storybook/angular/dist/builders/start-storybook/schema.json
index 017c33c..cf3c1ab 100644
--- a/node_modules/@storybook/angular/dist/builders/start-storybook/schema.json
+++ b/node_modules/@storybook/angular/dist/builders/start-storybook/schema.json
@@ -130,7 +130,7 @@
             "description": "URL path to be appended when visiting Storybook for the first time"
         },
         "webpackStatsJson": {
-            "type": "string",
+            "type": ["boolean", "string"],
             "description": "Write Webpack Stats JSON to disk",
             "default": false
         },

To Reproduce

No response

System

NX 16.10.0
SB 7.0.18

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant