You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Choose Remix App Server, install deps and enter folder
Run npm install react-live@next
Add the code below to show a very basic live code editor
Downgrade to 1.2.2 and see that the error is there still
Downgrade to 1.2.1 and see that the error is not there anymore.
This sounds like a react-live bug, but when I debugged this (for daaaays), it looks like a compilation bug.
This crashes because of a compilation error. It says the import_NameManager.default is not a constructor. That's correct (even though it should be) - it's an object containing the "default" property, which in turn includes the NameManager constructor. So it looks like it has something to do with compiling Sucrase!
Here's a typical place in the compiled code (found in public/build) where it's used:
After fixing this one-off mistake, I notice that this happens with all default exports - and that's why I think it's a compilation level issue that might be addressed here.
It definitely sounds like it has something to do with #1998, but as far as I can see, Sucrase doesn't do the faulty default export thing this issue warns about. I can't see it in the compiled code either, so I'm not sure where to look next. However, this issue in Sucrase also sounds related - it's the same issue, just a different class.
Any help would be greatly appreciated!
Expected Behavior
I would expect it to work
Actual Behavior
I get a compilation error!
The text was updated successfully, but these errors were encountered:
@MichaelDeBoey can you open the ticket, here is the answer from the author of esbuild, it would be nice we can config esbuild via remix.config
related to #1405, it would be nice if we can provide a way to alias module resolution
What version of Remix are you using?
1.2.2 (and 1.2.3)
Steps to Reproduce
I've created a reproduction here: https://github.com/selbekk/remix-react-live-repro
Steps I followed to create this repro:
npx create-remix@latest
npm install react-live@next
This sounds like a
react-live
bug, but when I debugged this (for daaaays), it looks like a compilation bug.This crashes because of a compilation error. It says the
import_NameManager.default
is not a constructor. That's correct (even though it should be) - it's an object containing the "default" property, which in turn includes the NameManager constructor. So it looks like it has something to do with compiling Sucrase!Here's a typical place in the compiled code (found in
public/build
) where it's used:After fixing this one-off mistake, I notice that this happens with all default exports - and that's why I think it's a compilation level issue that might be addressed here.
It definitely sounds like it has something to do with #1998, but as far as I can see, Sucrase doesn't do the faulty default export thing this issue warns about. I can't see it in the compiled code either, so I'm not sure where to look next. However, this issue in Sucrase also sounds related - it's the same issue, just a different class.
Any help would be greatly appreciated!
Expected Behavior
I would expect it to work
Actual Behavior
I get a compilation error!
The text was updated successfully, but these errors were encountered: