Open TotomInc opened 1 year ago
Seconded with a devtool panel. Can render a component fine but importing anything from react
breaks it.
🎟 A workaround for this is to delete the contents of .build
, rebuild (pnpm run dev
), and remove/read the extension on chrome://extensions
.
Docs do mention this, kinda, but I had to nuke it for things to work.
https://docs.plasmo.com/framework/ext-pages
Heads up! Make sure to refresh your extension manually when creating a new browser extension page as our runtime might not be listening and might not update in certain cases.
What happened?
Unable to import hooks from
react
such asuseState
oruseEffect
, I got the following error:Uncaught Error: Cannot find module 'react'
This happens on a CSUI named
contents/widget.tsx
with TailwindCSS setup:Version
Latest
What OS are you seeing the problem on?
MacOSX
What browsers are you seeing the problem on?
Chrome
Relevant log output
(OPTIONAL) Contribution
Code of Conduct