All Questions
Tagged with yarnpkg visual-studio-code
66
questions
1
vote
1
answer
105
views
Yarn cannot find nodejs especially in VS Code
When I run yarn with PowerShell in VS Code. I got message like this:
yarn
yarn install v1.22.22
$ node preinstall.js
'node' is not recognized as an internal or external command,
operable program or ...
0
votes
0
answers
109
views
Visual Studio Code crash issue "kill-9". Linux Mint
I'm working on a React project built with the Yarn package manager.VsCode crashes periodically with the following error : "The build failed because the process exited too early. This probably ...
1
vote
1
answer
1k
views
Cannot find module `prettier' in VSCode with Yarn PnP (Extensions do not work with YARN PnP)
Since upgrading to Yarn 2+ (Berry), and later Yarn 4 with PnP support, VSCode cannot resolve locations for extensions prettier, eslint and others. In VSCode I receive the following error message:
...
0
votes
0
answers
186
views
VSCode quick import work with ctrl + space, but not with ctrl + . with Vite + React project
as above, project initialized with yarn + vite + react
OS: win 10 pro
This is file structure:
vite.config.js:
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
export ...
0
votes
0
answers
89
views
yarn add chromedriver installs node_modules in the macos user directory
On macOS, in /Users/Username/Documents/Projects/Projectname/, running sudo npm install --location=global yarn in VS Code installs yarn.
In the same VS Code session, and in the same project directory, ...
0
votes
1
answer
1k
views
How to install yarn package on VS code?
As I am running the corepack enable it is showing me
Internal Error: EACCES: permission denied, symlink '../lib/node_modules/corepack/dist/pnpm.js' -> '/usr/local/bin/pnpm'
Error: EACCES: ...
1
vote
0
answers
86
views
Next.js VS Code proxy
When I use the proxy, I create a Next.js project, and then I close the proxy. After entering the project, neither Yarn nor NPM can be used, and after troubleshooting, it is found that there is such an ...
-1
votes
1
answer
162
views
Visual Studio Code command "yarn studio" does not work - "The system cannot find the file specified" error
I'm working on hybrid project of Angular with Android, my environment is Visual Studio Code. I'm trying to open this project in Android Studio with command "yarn studio", but it does not ...
1
vote
0
answers
12
views
How to debug server-side code in a express.js/React/Redux/gql/Apollo stack in VSC?
Coming from a PHP background I am having real trouble debugging server-side code using the following set-up:
Visual Studio Code
Yarn
node.js/express.js
React
Redux
gql/Apollo
I start the local ...
0
votes
1
answer
520
views
In VS Code why does Yarn debug stop at cli.js when Caught Exceptions is enabled?
I'm trying to debug a Jest test and breakpoint at "Caught Exceptions" in VS Code but it stops at /.node/corepack/yarn/1.22.15/lib/cli.js which is irrelevant to me.
I've tried to add several ...
2
votes
0
answers
39
views
VS Code jumps to source instead of build
I'm working on a huge repo containing multiple workspaces with projects written in typescript.
With Yarn I manage all of these workspaces and install them into each other.
Now the Problem is the ...
2
votes
2
answers
1k
views
NextJs setup in vscode using Yarn
I ran yarn create next-app --typescript to create a TypeScript Next app using Yarn. The app runs fine using yarn run dev; however, vscode does not read any of the yarn packages added.
I've tried ...
1
vote
1
answer
2k
views
Yarn install timeout on Azure App Service (Oryx)
When using the Azure App Service through vscode, when deploying to a webapp. The Oryx operations may fail because of a timeout during the installation of packages with Yarn with the message "...
1
vote
1
answer
2k
views
VsCode launch json configuration for specific node version and use yarn start
Couldn't find a solution to run yarn start in vscode debugger mode using a specific node version. launch.json file is as follows
{
"version": "0.2.0",
"configurations&...
1
vote
0
answers
515
views
Launch config for yarn in VSCode?
I'm trying to add a launch config to VSCode for local debugging. Our command line is
yarn dev (which in package.json is
"dev": "ENV_FILE=./config/.env.dev ts-node -r tsconfig-paths/...