jvandemo / jvandemo/generator-angular2-library

"npm run build" fails when source open with Visual Studio Code

Open
#285 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
740
Forks
116
PR merge metrics
No merged PRs in 30d

Description

For some reason, whenever I try to build my library with the "npm run build" command and I have my library source open in Visual Studio Code (1.21.1), the npm build command errors out. If I close VS Code and try again it works just fine.

I know this is likely a file locking issue in VS Code and nothing to do with generator-angular2-library but I've been searching for a few weeks for a solution and nobody seems to have an answer. I've tried other editors such as Atom and don't have the same problem so it is definitely local to VS Code.

If anyone has run into this and has a fix I'd appreciate it. Please don't say use another editor as I've tried a bunch of them and I find VS Code does everything I want (except this problem) just the way I like.

Thanks,

John

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by running npm run build with the library source open in Visual Studio Code 1.21.1, then repeat with VS Code closed and capture the exact error output. No file or test is named; done means establishing whether the failure belongs to the generator or the editor interaction and documenting a reproducible fix or confirmed limitation.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, javascript, node.js, vscode
Domain
build-system, developer-experience, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.