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 -Antd or Shineout #943

Open
zyfwudi opened this issue Dec 6, 2024 · 0 comments
Open

Failed to import -Antd or Shineout #943

zyfwudi opened this issue Dec 6, 2024 · 0 comments
Labels
browser Not working in Browser

Comments

@zyfwudi
Copy link

zyfwudi commented Dec 6, 2024

Failing module

import React from 'https://esm.sh/react'
import ReactDOM from 'https://esm.sh/react-dom/client'
import { Alert } from "https://esm.sh/shineout"

Error message

After onload I got this:

Uncaught TypeError: Cannot read properties of null (reading 'useRef')

React19 is updated to latest, resulting in the above error when loading shineout or antd. The react version will load 19.0.0, 18.3.1, and 18.2.0 at the same time. If you use ?deps=, you can only fix the current dependent react version, and the internal dependencies still cannot control the react version.

Additional info

  • Browser info:
@zyfwudi zyfwudi added the browser Not working in Browser label Dec 6, 2024
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

1 participant