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

"Can't resolve node:tty" when using nextjs and yarn 3 #131

Closed
magnattic opened this issue Jan 18, 2022 · 1 comment
Closed

"Can't resolve node:tty" when using nextjs and yarn 3 #131

magnattic opened this issue Jan 18, 2022 · 1 comment

Comments

@magnattic
Copy link

When building my nextjs application with yarn 3 (in pnp mode) I get the following error:

[webpack.cache.PackFileCacheStrategy] Caching failed for pack: Error: Can't resolve 'node:tty' in '/home/magnattic/code/urbyo/platform/.yarn/cache/supports-color-npm-9.2.1-1ef7bf7d73-8a2bfeb64c.zip/node_modules/supports-color'
<w> while resolving 'node:tty' in /home/magnattic/code/urbyo/platform/.yarn/cache/supports-color-npm-9.2.1-1ef7bf7d73-8a2bfeb64c.zip/node_modules/supports-color as file
<w>  at resolve esm file node:tty
<w>  at file dependencies /home/magnattic/code/urbyo/platform/.yarn/cache/supports-color-npm-9.2.1-1ef7bf7d73-8a2bfeb64c.zip/node_modules/supports-color/index.js
<w>  at file /home/magnattic/code/urbyo/platform/.yarn/cache/supports-color-npm-9.2.1-1ef7bf7d73-8a2bfeb64c.zip/node_modules/supports-color/index.js
<w>  at file dependencies /home/magnattic/code/urbyo/platform/.yarn/__virtual__/debug-virtual-c0583bf729/0/cache/debug-npm-4.3.3-710fd4cc7f-14472d56fe.zip/node_modules/debug/src/node.js
<w>  at file /home/magnattic/code/urbyo/platform/.yarn/__virtual__/debug-virtual-c0583bf729/0/cache/debug-npm-4.3.3-710fd4cc7f-14472d56fe.zip/node_modules/debug/src/node.js
<w>  at file dependencies /home/magnattic/code/urbyo/platform/.yarn/__virtual__/debug-virtual-c0583bf729/0/cache/debug-npm-4.3.3-710fd4cc7f-14472d56fe.zip/node_modules/debug/src/index.js
<w>  at file /home/magnattic/code/urbyo/platform/.yarn/__virtual__/debug-virtual-c0583bf729/0/cache/debug-npm-4.3.3-710fd4cc7f-14472d56fe.zip/node_modules/debug/src/index.js
<w>  at file dependencies /home/magnattic/code/urbyo/platform/.yarn/cache/@babel-core-npm-7.16.7-268c2eb3fa-3206e077e7.zip/node_modules/@babel/core/lib/config/files/configuration.js
<w>  at file /home/magnattic/code/urbyo/platform/.yarn/cache/@babel-core-npm-7.16.7-268c2eb3fa-3206e077e7.zip/node_modules/@babel/core/lib/config/files/configuration.js
<w>  at file dependencies /home/magnattic/code/urbyo/platform/.yarn/cache/@babel-core-npm-7.16.7-268c2eb3fa-3206e077e7.zip/node_modules/@babel/core/lib/config/files/index.js
<w>  at file /home/magnattic/code/urbyo/platform/.yarn/cache/@babel-core-npm-7.16.7-268c2eb3fa-3206e077e7.zip/node_modules/@babel/core/lib/config/files/index.js
<w>  at file dependencies /home/magnattic/code/urbyo/platform/.yarn/cache/@babel-core-npm-7.16.7-268c2eb3fa-3206e077e7.zip/node_modules/@babel/core/lib/index.js
<w>  at file /home/magnattic/code/urbyo/platform/.yarn/cache/@babel-core-npm-7.16.7-268c2eb3fa-3206e077e7.zip/node_modules/@babel/core/lib/index.js
<w>  at file dependencies /home/magnattic/code/urbyo/platform/.yarn/cache/@svgr-webpack-npm-6.2.0-be67a2d669-4fae0ee56c.zip/node_modules/@svgr/webpack/dist/index.js
<w>  at file /home/magnattic/code/urbyo/platform/.yarn/cache/@svgr-webpack-npm-6.2.0-be67a2d669-4fae0ee56c.zip/node_modules/@svgr/webpack/dist/index.js
<w>  at resolve commonjs /home/magnattic/code/urbyo/platform/.yarn/cache/@svgr-webpack-npm-6.2.0-be67a2d669-4fae0ee56c.zip/node_modules/@svgr/webpack/dist/index.js

yarn 3.1.1
nextjs 12.0.8

@sindresorhus
Copy link
Member

This is a problem with Next.js, not this package. Open an issue there instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants