-
-
Notifications
You must be signed in to change notification settings - Fork 266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(build): dyn import in skypack (native ESM) #456
Conversation
fix: dyn import in skypack (close: pmndrs#452)
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 490ac59:
|
I'm not sure if it will affect #410 |
Thanks for the investigation. |
https://codesandbox.io/s/react-forked-2d7r4r?file=/src/App.js This one seems working. |
I'm a little confused. Why doesn't Line 1 in af26b60
|
Maybe because it's a peer dependency. |
I'm not 100% confident, but let's merge this and ship it. We will see then. |
@ahaoboy I'm thinking about reverting this because @s-cork reported that it didn't fix. facebook/react#24590 |
When I do that I get: use-sync-external-store-shim.development.js:17 Uncaught ReferenceError: process is not defined
at use-sync-external-store-shim.development.js:16:3
at createCommonjsModule (use-sync-external-store-shim.development.js:4:10)
at use-sync-external-store-shim.development.js:15:22 When I look at what's trying to be imported from |
I've made an example, if it's what you need? or if you can give some specific details of the problem |
You should add some code before your script tag, like this:
|
fix: dyn import in skypack (close: #452)
I compared the versions that works, this is the difference
error
ok