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.

import RA default export doest not works

See original GitHub issue

default export seems to not works like ramda does.

import RA from 'ramda-adjunct' // RA is undefined
import R from 'ramda' // R is OK

import * as RA from 'ramda-adjunct' // RA is OK
import * as R from 'ramda' // R is OK

I don’t understand why, maybe need to investigate https://github.com/ramda/ramda/blob/master/.babelrc

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:16 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
guillaumearmcommented, Apr 23, 2018

Like @Andarist said :

You are not supposed to be able to import default from RA, it’s a namespace library.

So now that consistency issues between ramda and ramda-adjunct are fixed, it’s ok to me.

1reaction
guillaumearmcommented, Apr 22, 2018

Because we looking for consistance between RA and Ramda, I think we should export default too.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why is import/export statement not working? - Stack Overflow
The way you are importing works only with default export/import. So there are two ways you can fix your code: changing the import...
Read more >
Named exports with export default is not working #182 - GitHub
I'm using @std/esm on my app and I have an issue to report. The sample of the issue is very simple: // dependency.js...
Read more >
Export default was not found Error in JavaScript | bobbyhadz
The "export default was not found" error occurs when we try to import as default from a module that doesn't have a default...
Read more >
export - JavaScript - MDN Web Docs
This re-exports all named exports from mod as the named exports of the current module, but the default export of mod is not...
Read more >
Avoid ES6 default exports - Rajesh Naroth - Medium
There are times you will need to use default exports such as when you have to do code splitting. const ItemsContainer = React.lazy(()...
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