Open wpcarro opened 6 years ago
After toiling this for a bit longer, I've realized that whatever the last import is in the list will be the one that's undefined.
For instance, if I had the following...
import { compose, lensProp } from 'ramda'
...lensProp
will be undefined.
As a cheap workaround, I can do the following to get my code to compile:
import { compose, lensProp, map } from 'ramda'
This works because my module isn't using map
. It's happening to my coworkers now too, so I'm unsure how to proceed. Considering dropping it and just using:
import R from 'ramda'
R.compose(..)
R.lensProp(..)
Point to 1.4.3 for now, looking into the issue. Thanks for reporting.
I have the same/similar issue - but all named imports are undefined
.
node 10.5.0
, jest 23.4.1
, ramda 0.25.0
, and babel-plugin-ramda 1.6.2
Nice job not fixing this in 5 years, the author should seek employment in game dev
Version Info
node
:9.7.1
webpack
:3.8.1
ramda
:0.25.0
babel-plugin-ramda
:1.6.1
Explanation
I've been having issues compiling my project using
babel-plugin-ramda
.Here's what the source code import looks like:
And here's the error I'm receiving:
What's odd, is that if I change the import order to something like this:
The error changes to:
This plugin has worked for me in the past, but stopped working this past Thursday, and I've been unable to debug it since...
Here's what my babel configuration looks like:
Any insights into debugging this would be greatly appreciated!