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

error TS2649: Cannot augment module 'Xrm' with value exports because it resolves to a non-module entity. #255

Open
BarrieSharp opened this issue Feb 11, 2022 · 2 comments

Comments

@BarrieSharp
Copy link

I have generated my typings which are in my project. I am getting error TS2649. I cannot find anything that helps me understand what it means. Should I be adding something specific in the config? If so, could you include a sample in the Wiki.

Also, what project template was used in Visual Studio? I have used Blank Node.js Web Application but that doesn't include nuget.

@misoeli
Copy link
Member

misoeli commented Feb 17, 2022

Could you elaborate on the issue you're experiencing. Preferably with a minimal code example? Based on the error message you're getting, I think your problem lies in trying to import XRM. It is a namespace, not a module, meaning it shouldn't be imported, the appropriate file should just be loaded where needed.

@BarrieSharp
Copy link
Author

I wasn't explicitly trying to import XRM but I think the project template was doing something unexpected. I was using a blank node,js web application since that uses typescript but that has the import error. Also, the instructions were harder to follow on the wiki because it doesn't support nuget.

I managed to get it to work on a standalone ASP.net Core Web App project which supports the nuget workflow. The only downside is it defaults to F# creating new items so I have to just change the extension. That's why I wanted to know what VS template would be optimal. Other than that, I used the same tsconfig and ts for both templates.

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