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

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

Closed
1 of 4 tasks
andav51 opened this issue Oct 19, 2023 · 3 comments
Closed
1 of 4 tasks

Comments

@andav51
Copy link

andav51 commented Oct 19, 2023

Current Behavior

I am following the nx documentation to create an Angular based nx workspace and configure storybook. When I attempt to run storybook, I get the following error:

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

Expected Behavior

Storybook should start without error. This is a simple project created by following the nx documentation.

GitHub Repo

No response

Steps to Reproduce

I have recreated the problem in a Docker container. Paste the following text in a Dockerfile:

FROM node:18.18.2
RUN npm install -g [email protected]
RUN npx [email protected] angular-monorepo --preset=angular-monorepo --appName=angular-store --style=css --e2eTestRunner=cypress --standaloneApi=false --routing=true --nxCloud=false --interactive=false
WORKDIR angular-monorepo
RUN nx g @nx/angular:storybook-configuration angular-store --configureStaticServe=true --generateStories=true --interactionTests=true

In the same directory where the Dockerfile has been created, run the following command to build a Docker image:

docker build -t nx-storybook .

Now run storybook in a container to see the issue:

docker run -it --rm nx-storybook nx storybook angular-store

Nx Report

Node   : 18.18.2
   OS     : linux-x64
   npm    : 9.8.1
   
   nx (global)        : 16.10.0
   nx                 : 16.10.0
   @nx/js             : 16.10.0
   @nx/jest           : 16.10.0
   @nx/linter         : 16.10.0
   @nx/workspace      : 16.10.0
   @nx/angular        : 16.10.0
   @nx/cypress        : 16.10.0
   @nx/devkit         : 16.10.0
   @nx/eslint-plugin  : 16.10.0
   @nx/storybook      : 16.10.0
   @nrwl/tao          : 16.10.0
   @nx/web            : 16.10.0
   @nx/webpack        : 16.10.0
   typescript         : 5.1.6
   ---------------------------------------
   Community plugins:
   @storybook/angular : 7.5.0

Failure Logs

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



 ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————

 >  NX   Ran target storybook for project angular-store (107ms)
 
    ✖    1/1 failed
    ✔    0/1 succeeded [0 read from cache]

Package Manager Version

No response

Operating System

  • macOS
  • Linux
  • Windows
  • Other (Please specify)

Additional Information

This issue was first seen in a much larger project after upgrading to nx 16. Storybook worked fine in nx 15. I recreated the issue in a simple project to simplify submitting this issue.

@andav51
Copy link
Author

andav51 commented Oct 19, 2023

This appears to be a storybook issue.

@andav51
Copy link
Author

andav51 commented Oct 19, 2023

Confirmed that this is now fixed in storybook 7.5.1.

Copy link

This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant