question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeScript: dynamics-web-api.d.ts is not a module

See original GitHub issue

The following code is producing the following error.

Code: import DynamicsWebApi from 'dynamics-web-api';

Error: File 'c:/.../node_modules/dynamics-web-api/lib/dynamics-web-api.d.ts' is not a module.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
tdashworthcommented, Aug 4, 2018

Thanks for your quick response.

Is it something you are planning for the future?

I would love to contribute but I am only just starting to learn TypeScript.

0reactions
AleksandrRogovcommented, Apr 4, 2019

Hi @rsquarev , In case you are not getting notifications from DynamicsWebApi: I added TypeScript declaration files, you can download them from here. Hope that will help.

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeScript typings give me "index.d.ts is not a module"
The index.d.ts file indeed is not a module, it just references two other files with interfaces in them. So I thought to remove...
Read more >
Typescript 2.9, ai.module.dts is not a module #615 - GitHub
When trying to use it with typescript I am seeing ai.module.d.ts not a module error when using both. @types/applicationinsights-js and ...
Read more >
File is not a module error in TypeScript | bobbyhadz
The error "File is not a module" occurs when we forget to use the `export` keyword to export a value from a file...
Read more >
dynamics-web-api - npm
DynamicsWebApi can be used as Node.js module to access Dynamics 365 Web API using ... TypeScript declaration files d.ts added with v.1.5.3.
Read more >
TypeScript File index.d.ts is not a module - The art of simplicity
Visual Studio finds my @types files but complains that it is not a valid module. In fact this makes sense. When using the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found