Skip to content
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

Failed to import - React 19 #1050

Closed
zengfan1992 opened this issue Jan 23, 2025 · 2 comments
Closed

Failed to import - React 19 #1050

zengfan1992 opened this issue Jan 23, 2025 · 2 comments
Labels
browser Not working in Browser

Comments

@zengfan1992
Copy link

Failing module

https://esm.sh/stable/react@19.0.0/denonext/react.mjs

Error message

import __Process$ from "node:process";

Additional info

@zengfan1992 zengfan1992 added the browser Not working in Browser label Jan 23, 2025
@ije
Copy link
Member

ije commented Jan 23, 2025

you should use https://esm.sh/stable/react@19.0.0/esnext/react.mjs for browser, denonext target only works in deno runtime.

or use the latest build that omit the Process:

import React from "https://esm.sh/react@19.0.0"

@ije ije closed this as completed Jan 23, 2025
@zengfan1992
Copy link
Author

I found solution here
lucacasonato/esbuild_deno_loader#163

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
browser Not working in Browser
Projects
None yet
Development

No branches or pull requests

2 participants