-
-
Notifications
You must be signed in to change notification settings - Fork 4
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
Webpack : AJV Dependency errors #33
Comments
Also 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: { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
The text was updated successfully, but these errors were encountered: