Skip to content
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

error TS2724: '"next/dist/compiled/webpack/webpack"' has no exported member named 'webpack5'. Did you mean 'webpack'? #31419

Closed
theodorDiaconu opened this issue Nov 15, 2021 · 2 comments
Labels
bug Issue was opened via the bug report template.

Comments

@theodorDiaconu
Copy link

What version of Next.js are you using?

12.0.3

What version of Node.js are you using?

14

What browser are you using?

.

What operating system are you using?

Mac

How are you deploying your application?

.

Describe the Bug

https://github.com/vercel/next.js/blob/canary/packages/next/server/config-shared.ts#L2
You are importing webpack5 from 'dist' in a ts file and that file only exports webpack, this prevents us from compiling an npm package that depends on next@^12.0.3

Expected Behavior

...

To Reproduce

Just compile a package that depends on next

(https://github.com/bluelibs/bluelibs/pull/109/files)

@theodorDiaconu theodorDiaconu added the bug Issue was opened via the bug report template. label Nov 15, 2021
@timneutkens
Copy link
Member

This is fixed on next@canary: #31206

@balazsorban44
Copy link
Member

This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@vercel vercel locked as resolved and limited conversation to collaborators Jan 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue was opened via the bug report template.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants