-
Notifications
You must be signed in to change notification settings - Fork 27k
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
Not support node v17 #31514
Labels
bug
Issue was opened via the bug report template.
Comments
next.js/packages/next/build/webpack-config.ts Lines 693 to 703 in 4ea7d7b
replace to import { resolvePackageJsonLocation } from '@yarn-tool/resolve-package' const getPackagePath = (name: string, relativeToPath: string) => {
const packageJsonPath = resolvePackageJsonLocation(name, {
paths: [relativeToPath],
})
// Include a trailing slash so that a `.startsWith(packagePath)` check avoids false positives
// when one package name starts with the full name of a different package.
// For example:
// "node_modules/react-slider".startsWith("node_modules/react") // true
// "node_modules/react-slider".startsWith("node_modules/react/") // false
return path.join(packageJsonPath, '../')
} |
I just tried this and it worked fine. |
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. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
What version of Next.js are you using?
12
What version of Node.js are you using?
17
What browser are you using?
xx
What operating system are you using?
windows
How are you deploying your application?
yarn start
Describe the Bug
Expected Behavior
no error same as node 16
To Reproduce
use node 17
yarn start
The text was updated successfully, but these errors were encountered: