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.

typings indicate default whereas the js code by default is export all

See original GitHub issue

in your ts typings:

declare function dayjs (config?: ConfigType): Dayjs

export default dayjs

in your distjs.min.js

...
 module.exports = e() 
...

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
fabianedl777commented, Aug 26, 2019

I am using typescript 3.5.3 and dayjs 1.8.5 and only work with this typescript config

"allowSyntheticDefaultImports": true, "esModuleInterop": true,

was this solution reversed?

0reactions
xx45commented, May 18, 2018

🎉 This issue has been resolved in version 1.6.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Read more comments on GitHub >

github_iconTop Results From Across the Web

Typescript export vs. default export - Stack Overflow
Modules and their associated keyword like import , export , and export default are JavaScript constructs, not typescript. However typescript added the ...
Read more >
Type annotations for default export · Issue #13626 - GitHub
I am confusing about this too. any suggestion about typing the default export function?
Read more >
What is export default in JavaScript ? - GeeksforGeeks
Default Exports: Default exports are useful to export only a single object, function, variable. During the import, we can use any name to...
Read more >
Documentation - Modules - TypeScript
Each module can optionally export a default export. Default exports are marked with the keyword default ; and there can only be one...
Read more >
export - JavaScript - MDN Web Docs
Every module can have two different types of export, named export and default export. You can have multiple named exports per module but ......
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