You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 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.
The text was updated successfully, but these errors were encountered:
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:
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
Failure Logs
Package Manager Version
No response
Operating System
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.
The text was updated successfully, but these errors were encountered: