create-nodejs-ts icon indicating copy to clipboard operation
create-nodejs-ts copied to clipboard

vscode warnings when editing freshly generated project

Open BurtHarris opened this issue 2 years ago • 1 comments

Describe the bug After generating a project with create-nodejs-ts, when I open the project using Microsoft Visual Studio Code (vscode) several error messages are popping up saying that some of the add-ins are terminating.

To Reproduce Steps to reproduce the behavior:

  1. From c:\try I execute npm create nodejs-ts, creating a \try\my-app directory
  2. code my-app opens the vscode editor

** Observed ** VSCode has outputs errors related to jest. It is complaining that an external process running jest has terminated. The text says:

'"jest.cmd"' is not recognized as an internal or external command,
operable program or batch file.
Jest process "watch-tests" ended unexpectedly
 see troubleshooting: https://github.com/jest-community/vscode-jest/blob/master/README.md#troubleshooting

Expected behavior Normal VsCode startup

Diagnosed Issue The template seemed to have left out two steps VsCode assumes have been done.

  • git init
  • npm install (or equivalant)

It obviously wasn't a big deal to figure that out, but for less experienced devs, executing those steps would be great.

Screenshots If applicable, add screenshots to help explain your problem.

image

Environment (please complete the following information):

  • OS: Windows 11 Pro. version 22H2, (OS Build 22621.232)
PS C:\Try\my-app> npm -v
8.13.2
\\PS C:\Try\my-app> node -v
v18.5.0
PS C:\Try\my-app> code -v
1.69.1
b06ae3b2d2dbfe28bca3134cc6be65935cdfea6a
x64

Additional context

Thanks, for your efforts so far. This is obviously only a minor glitch.

BurtHarris avatar Jul 15 '22 21:07 BurtHarris

Hello @BurtHarris I'll try to check this soon. busy week here 🥲

vitorsalgado avatar Jul 19 '22 00:07 vitorsalgado