UPDATE: Fixed by storybookjs/storybook/pull/22160!
- Install dependencies
yarn
- Try to build Next.js Storybook
npx nx build-storybook next-app
Fails:
> NX Module not found: Error: Can't resolve '@path-imports/react-rollup-lib' in '/Users/katerina/Projects/nrwl/test_nx_workspaces/path-imports/apps/next-app/components/one'
apps/next-app
- Next.js appapps/ngapp
- Angular appapps/react-vite
- React app using Viteapps/react-webpack
- React app using Webpack
These apps import libraries from libs
folder, using the import paths specified in tsconfig.base.json
.
All the other apps can build Storybook successfully, except the Next.js app.
npx nx build-storybook ngapp
npx nx build-storybook react-vite
npx nx build-storybook react-webpack
git checkout test/sb-65
then install
yarn
then build next-app Storybook
npx nx build-storybook next-app