Closed micahscopes closed 7 years ago
Does it work for other methods? For example import {stream} from 'kefir'
?
Edit: replaced create -> stream
yeah, I tried it with stream
and that worked.
On Thu, Oct 13, 2016 at 2:26 PM, Roman Pominov notifications@github.com wrote:
Does it work for other methods? For example import {create} from 'kefir'?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rpominov/kefir/issues/223#issuecomment-253613341, or mute the thread https://github.com/notifications/unsubscribe-auth/AAXylmjuU9q2GKoShh4XK0C5or8BqutLks5qzoXWgaJpZM4KWOC- .
I tried it with rollup
and it doesn't work with any method. Not sure if it should actually, maybe rollup
doesn't support this kind of imports from a cjs module. import Kefir from 'kefir'
works fine in my setup though.
Are you sure it works for other methods, and what bundler do you use webpack/rollup/browserify?
ahh, just realized I'm using the rollup-plugin-commonjs plugin. that definitely explains why it did anything at all. I just need to figure out the correct way of importing.
so I'll try import Kefir from 'kefir'
thanks
Ok, I'll close this for now then.
gives me
Export 'fromEvents' is not defined by '.../node_modules/kefir/dist/kefir.js'
Just to see what'd happen, I tried doing:
and that just resulted in
kefir.fromEvents
being undefined.