You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following error occurs while building by Next.js app locally.
$ yarn build
yarn run v1.22.17
$ next build
Failed to compile.
./node_modules/next/dist/server/config-shared.d.ts:1:15
Type error: '"next/dist/compiled/webpack/webpack"' has no exported member named 'webpack5'. Did you mean 'webpack'?> 1 | import type { webpack5 } from 'next/dist/compiled/webpack/webpack';| ^
2 | import { Header, Redirect, Rewrite } from '../lib/load-custom-routes';
3 | import { ImageConfig, ImageConfigComplete } from './image-config';
4 |exportdeclaretype NextConfigComplete = Required<NextConfig>& {
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
azzazkhan
changed the title
Trying to import non-existing dependency in source code
Trying to import non-existing type in framework's source code
Nov 8, 2021
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
locked as resolved and limited conversation to collaborators
Jan 27, 2022
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
What version of Next.js are you using?
12.0.3
What version of Node.js are you using?
14.18.0
What browser are you using?
Chrome
What operating system are you using?
Windows 10
How are you deploying your application?
yarn build
Describe the Bug
The following error occurs while building by Next.js app locally.
Expected Behavior
Should run normally
To Reproduce
Clone the repository.
The text was updated successfully, but these errors were encountered: