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.

mailgun_js_1.default is not a constructor

See original GitHub issue

Just 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:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
olexandr-mazepacommented, Jul 6, 2021

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.

1reaction
ethan-tqacommented, Jun 24, 2021

This should be part of the doc

Read more comments on GitHub >

github_iconTop 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 >

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