Open FCDave opened 2 years ago
Also yarn build
of a Next.js application fails with the following message:
yarn run v1.22.18
$ next build
warn - You have enabled experimental feature(s).
warn - Experimental features are not covered by semver, and may cause unexpected or broken application behavior. Use them at your own risk.
warn - SWC minify release candidate enabled. https://nextjs.org/docs/messages/swc-minify-enabled
Failed to compile.
./node_modules/storybook-addon-headless/node_modules/ajv/lib/ajv.ts:40:3
Type error: Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'.
38 |
39 | export {
> 40 | Format,
| ^
41 | FormatDefinition,
42 | AsyncFormatDefinition,
43 | KeywordDefinition,
error Command failed with exit code 1.
as a temporary workaround, i have had to set typescript to ignoreBuildErrors in the nextjs config. It is definitely not an ideal workaround but it builds
typescript: { ignoreBuildErrors: true, }
Bundling my project with webpack produces errors in the AJV dependency of storybook-addon-headless
To Reproduce Steps to reproduce the behavior:
npx webpack serve --config webpack.dev.js
Expected behavior Project gets bundled without issue and dependencies are handled correctly, and serves up the bundle.
Screenshots
webpack.dev.js
webpack.common.js
Desktop (please complete the following information):
Additional context Webpack 5.66.0 storybook-addon-headless 2.1.3 typescript 4.5.4 ts-loader 9.2.6 storybook-react 6.4.19