mailgun_js_1.default is not a constructor
See original GitHub issueJust installing a this libary and trying to create an instance, it does not work.
I’m using:
import Mailgun from 'mailgun.js';
Here is my tsconfig.json
{
"compilerOptions": {
"lib": ["ES2020"],
"module": "commonjs",
"declaration": true,
"removeComments": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"allowSyntheticDefaultImports": true,
"target": "es2017",
"sourceMap": true,
"outDir": "./dist",
"baseUrl": "./",
"incremental": true,
"strict": true,
"skipLibCheck": true
}
}
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Error: *.default is not a constructor - Stack Overflow
You need to export a default value which will look like: export default class MapAction implements IMapAction {... And import it as:
Read more >Issues · mailgun/mailgun.js - GitHub
Receipent-Variables Conditional Render (not handlebars)? ... Recipient Variables aren't HTML escaped. Is this expected? ... ProTip! no:milestone will show ...
Read more >Hi, to fix this `o.default is not a constructor`, you need to adjust ...
Hi, to fix this `o.default is not a constructor`, you need to adjust your import statement, from: import Cookies from 'universal-cookie';.
Read more >_handsontable2.default is not a constructor - Issues
I have a project using Aurelia as frontend framework and I'm trying to use Handsontable but I'm getting the following error :
Read more >TypeError: web3_1.default is not a constructor
I'm trying to convert a DApp that uses web3.js from JavaScript to TypeScript, but I have encountered a bunch of runtime errors. I'm...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It seems like the original issue is fixed. If you see the place for improvement in documentation, please open another issue and put your suggestions there.
This should be part of the doc