-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Closed
Labels
blocked: third-partyoutdatedscope: storybookIssues related to Storybook support in NxIssues related to Storybook support in Nxtype: bug
Description
Current Behavior
When running a Storybook serving command like nx storybook my-lib
, I have the following error NX Invariant failed: Expected package.json#version to be defined in the "undefined" package}
on Storybook 8.2.2
which was not the case in Storybook 8.1.11
.
Expected Behavior
No error.
GitHub Repo
No response
Steps to Reproduce
- Migrate from Storybook
8.1.11
to8.2.2
- Serve a storybook instance
Nx Report
Node : 20.12.2
OS : darwin-arm64
npm : 10.5.0
nx : 19.4.2
@nx/js : 19.4.2
@nx/linter : 19.4.2
@nx/eslint : 19.4.2
@nx/workspace : 19.4.2
@nx/cypress : 19.4.2
@nx/devkit : 19.4.2
@nx/eslint-plugin : 19.4.2
@nx/react : 19.4.2
@nx/storybook : 19.4.2
@nrwl/tao : 19.4.2
@nx/vite : 19.4.2
@nx/web : 19.4.2
typescript : 5.4.5
---------------------------------------
Community plugins:
@koliveira15/nx-sonarqube : 4.1.0
nx-stylelint : 17.1.5
Failure Logs
Error: Invariant failed: Expected package.json#version to be defined in the "undefined" package}
at invariant (/Users/mac/Documents/github/repo-x/front/node_modules/@storybook/core/dist/core-server/index.cjs:187629:11)
at buildDevStandalone (/Users/mac/Documents/github/repo-x/front/node_modules/@storybook/core/dist/core-server/index.cjs:189878:3)
at Object.build (/Users/mac/Documents/github/repo-x/front/node_modules/@storybook/core/dist/core-server/index.cjs:190005:12)
at runInstance (/Users/mac/Documents/github/repo-x/front/node_modules/@nx/storybook/src/executors/storybook/storybook.impl.js:26:18)
at storybookExecutor (/Users/mac/Documents/github/repo-x/front/node_modules/@nx/storybook/src/executors/storybook/storybook.impl.js:12:26)
at storybookExecutor.next (<anonymous>)
at getLastValueFromAsyncIterableIterator (/Users/mac/Documents/github/repo-x/front/node_modules/nx/src/utils/async-iterator.js:15:34)
at iteratorToProcessStatusCode (/Users/mac/Documents/github/repo-x/front/node_modules/nx/src/command-line/run/run.js:44:94)
at /Users/mac/Documents/github/repo-x/front/node_modules/nx/src/command-line/run/run.js:187:16
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Package Manager Version
No response
Operating System
- macOS
- Linux
- Windows
- Other (Please specify)
Additional Information
Building Storybook is working (nx build-storybook my-lib
).
thomasgosse, PaulACoroneos, jmaestree, rmonteil, darondel-yoobic and 9 more
Metadata
Metadata
Assignees
Labels
blocked: third-partyoutdatedscope: storybookIssues related to Storybook support in NxIssues related to Storybook support in Nxtype: bug