Module not found: Error: Can't resolve 'react-is' in '/xxx/node_modules/.registry.npmjs.org/next-server/8.0.4-canary.9/node_modules/next-server/dist/lib/router'
Also @babel/runtime-corejs2 in next-server.
Occurs when using pnpm which expects explicit deps (no hoisting).
Install deps in app root.
This isn't an issue with Next.js
This isn't an issue with Next.js
Yes it is. Something is being required that is not specified in the closest package.json. This is non-standard, and could cause many issues later on. It also won't support yarn pnp.
edit: Will update for proper version
ESLint project recommended these:
https://github.com/mysticatea/eslint-plugin-node
node/no-extraneous-import | disallow聽import聽declarations of extraneous packages | 聽
-- | -- | --
node/no-extraneous-require | disallow聽require()聽expressions of extraneous packages | 猸愶笍
node/no-missing-import | disallow聽import聽declarations of missing files | 聽
node/no-missing-require | disallow聽require()聽expressions of missing files
Afaik this was fixed.
Most helpful comment
Yes it is. Something is being required that is not specified in the closest
package.json. This is non-standard, and could cause many issues later on. It also won't support yarn pnp.