Skip to content

fix: declare "original-fs" dependency referenced by "src/main.ts" #233678

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

Closed
wants to merge 1 commit into from

Conversation

Cecil0o0
Copy link
Contributor

It seems to introduce a dependency "oringinal-fs" which was not declared in package.json, after I executed script compile, ran a cli node out/main.js, I got a ERR_MODULE_NOT_FOUND Error in the integrated terminal, a screenshot below:

image

It seems to be a problem, this pr would like to fix this~

@deepak1556
Copy link
Collaborator

original-fs is a builtin module from the desktop runtime. You need to use the startup scripts scripts/code.(sh|bat) to launch the application which sets certain env variables that are needed to ensure correct behavior.

@deepak1556 deepak1556 closed this Nov 12, 2024
@Cecil0o0 Cecil0o0 deleted the fix/undeclared-dependency branch November 12, 2024 13:53
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Dec 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants