rtfeldman / seamless-immutable

Immutable data structures for JavaScript which are backwards-compatible with normal JS Arrays and Objects.
BSD 3-Clause "New" or "Revised" License
5.37k stars 194 forks source link

v7.0.0 seems broken in React Native environment #180

Closed messense closed 7 years ago

messense commented 7 years ago

Just upgraded from 6.1.1, causing import error.

rtfeldman commented 7 years ago

I need a lot more information than this.

Please feel to reopen with a description that someone can act on. 🙂

messense commented 7 years ago

image

Downgraded to v6.1.1 works fine.

messense commented 7 years ago

And the React Native packager hangs on transforming when this error occurred.

rtfeldman commented 7 years ago

What happens if you go into node_modules/seamless-immutable/package.json and delete the "browser": entry?

messense commented 7 years ago

@rtfeldman Works fine after deleting browser entry!

rtfeldman commented 7 years ago

Hm, ok - what if you leave the browser entry there, but add another entry that's exactly the same as the browser one except it says "react-native" instead of "browser"?

messense commented 7 years ago

@rtfeldman Still get the error.

messense commented 7 years ago

It works when I leave the browser entry there, but add another entry that's exactly the same as the main one except it says "react-native" instead of "main"

rtfeldman commented 7 years ago

@messense please reopen if 7.0.1 doesn't fix this!