Skip to content
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

TypeScript Compilation failed in other than "C:\Users\${username}\source\repos\${projectname}" #3

Open
jesusarockias opened this issue May 17, 2021 · 1 comment

Comments

@jesusarockias
Copy link

jesusarockias commented May 17, 2021

I have created a TypeScript project and it is working fine in the above location. But, compilation failed while we move the project to any other location.

Any idea to configure this?

@jesusarockias jesusarockias changed the title TypeScript Compilation failed in other than TypeScript Compilation failed in other than "C:\Users\${username}\source\repos\${projectname}" May 17, 2021
@rich-newman
Copy link
Owner

Apologies for the very long delay in responding.

I have been testing this issue and don't see the problem in general. I can create a project anywhere on my hard drive and it works, and I can move it and it still works.

One issue I did see was that if you move the project into a folder with a node_modules folder somewhere in the path it can refuse to compile. This issue has been fixed in the latest release, today. The issue arose because Visual Studio can get confused about whether setInterval is a node or a browser function. It's meant to be a browser function, and that has been made explicit in the latest release.

If you can provide more information after all this time I will investigate further, but otherwise I will close this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants