-
-
Notifications
You must be signed in to change notification settings - Fork 410
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
[BUG] HeroUI doesn't work on contentscript #1180
Comments
I can confirm that I have the same issue on a tab page, right now. To my understanding the packaging of Plasmo is unable to resolve a dynamic import. |
For both issues you can: 1- Disable animation in the HerouiProvider @RobertChaw
2- Disable animation in the ToastProvider @lazyanubis
|
I found a better temporary solution for this issue. @Guibod @lazyanubis Just manually import //contents/contentscript.js
import { Button, HeroUIProvider, useDisclosure } from "@heroui/react";
import "@heroui/dom-animation"; // manual import
... |
It looks like what I need to dynamically import is domMax. import "@heroui/dom-animation"; @RobertChaw It didn't work for me. 😂 <ToastProvider disableAnimation={true}/> @Guibod It works but it looks not good. Thanks for the tip all the same. 👍🏻 |
What happened?
The Modal component from heroui does not open on content script. This may be due to incorrect handling of dynamic imports.
Reproduction Playground
https://github.com/RobertChaw/heroui-not-work-on-contentscript
Version
Latest
What OS are you seeing the problem on?
Windows
What browsers are you seeing the problem on?
Chrome
Relevant log output
Uncaught (in promise) Error: Cannot find module '23bSo' at newRequire (contents.85aba5ab.js:62:19) at Function.newRequire (contents.85aba5ab.js:46:18) at contents.85aba5ab.js:49263:27
(OPTIONAL) Contribution
Code of Conduct
The text was updated successfully, but these errors were encountered: