All Questions
Tagged with visual-studio-code node.js
2,201 questions
0
votes
1
answer
168
views
WSL-2 and VS Code: How can I forward a port and have it be accessible to the external network?
I am attempting to create a simple webserver using nodejs on WSL-2 using VS Code. When I run the application, VS Code detects that the server is running and dynamically forwards a port for me. However,...
1
vote
0
answers
65
views
Node.js Debugger Not Connecting in Chrome (DevTools) via --inspect – Heap Snapshot Stuck on Loading
I'm running a Node.js application written in TypeScript. I use VS Code for debugging and run the app using ts-node, with source maps enabled.
I'm running the app with the --inspect flag and using VS ...
-3
votes
1
answer
48
views
How to combine estlint and typescript-eslint [closed]
I have a simple eslint.config.mjs file below
import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';
export default tseslint.config(
eslint.configs.recommended,
tseslint....
0
votes
1
answer
44
views
Quick Pick Items dont render in UI for VS Code Extension
I am making an extension for VS Code that wraps fzf. Only for certain searches, the Quick Pick UI does not render the quick pick items, but they appear on the console when I log them. If I add a large ...
0
votes
1
answer
156
views
VS-Code with Sonar Qube (formerly Sonar Lint) - failure due to node.js
O/S is Linux Mint 21.3 (fully up-to-date)
my IDE is VS-Code 1.98.2 (latest) with various Extensions
Getting Started with C++ using VS-Code as my IDE
I am just getting started on C++ programming using ...
0
votes
1
answer
742
views
Error: "There is no data provider registered that can provide view data", while coding Visual Studio Code extension in debug mode
While coding and running an extension in debug mode, I get the error mentioned in the title.
Here is my extension.js:
// The module 'vscode' contains the VS Code extensibility API
// Import the ...
0
votes
0
answers
64
views
$lib imports in vanilla javascript with svelte / sveltekit
Is there any way to make statements like this work in vanilla javascript w/ svelte/sveltekit? I'm not using typescript. VS Code as my IDE.
import { googleAuth, auth } from '$lib/server/auth'
The ...
0
votes
0
answers
27
views
VSCode port forwarding through powershell or batch
I have a project in visual studio code, but has to port forwarded through the Ports tab's port forwarding feature. I am trying to make a powershell/batch script to automate the awkwardly long process ...
-1
votes
1
answer
39
views
Unable to start React App. Error "Cannot find module 'npm-cli.js'"
I am newbie to react technology and I faced an error while running a react app:
I have created demo react app without any additional addons and then I am trying to "npm start" - below error ...
0
votes
1
answer
61
views
In a VS Code task, how can I use my global node modules?
I created a task in Visual Studio Code to fetch some data from a web API and put it in the project files. For the fetch task, I tried to use the "axios" node module, which I installed ...
0
votes
0
answers
42
views
Typescript declare modifier warning not being thrown in certain environments
So while working with a colleague on a project we have found a case where his TS compiler would throw a warning in VSCode but mine did not. The error is the following one:
Property 'data' will ...
0
votes
2
answers
297
views
Error: Could not find any Visual Studio installation to use when building node-sass with node-gyp on Windows
I'm trying to install dependencies for a frontend project from GitHub, but I keep encountering the same error during installation.
The error that keeps occurring
PS C:\Users\User\Desktop\...
0
votes
2
answers
267
views
How can I fix the npm issue in VS Code terminal?
I am getting the following error after using npm in terminal.
It runs in windows command line, but not in terminal. Node.js is also installed. Its version is also checked with the following command
...
1
vote
0
answers
36
views
VSCode smart attach/debug mode not working when I specify --max-old-space-size=8192
I have a node js project (v20) where I use the smart attach mode of vscode to connect with the debugger.
I had to set NODE_OPTIONS="--max-old-space-size=8192" because one of my dependencies ...
0
votes
1
answer
39
views
Same command running differently in Vscode terminal and Command Prompt
I am trying to test my node application and I have multiple test files so I used npm run test -- --test-concurrency=1 flag to test one file at a time.When I run that command in Vscode terminal the --...