flat-state-13182
06/22/2022, 9:35 AMflat-state-13182
06/22/2022, 9:35 AMnpm link
both react
and react-dom
(otherwise it would throw hook errors due to being different instances), and everything worked fine that way.
I've wanted to make it a more permanent solution, so rather than manually linking them I changed the package.json
definition of both libraries and used a relative file import that pointed at them instead. In theory this should be the same, but now the extension refuses to work due to the following error:
ranker-overlay.tsx:85 Uncaught (in promise) ReferenceError: React is not defined
The error comes from the generated contents
file inside .plasmo/static
, and I believe it has something to do about how you've set it up because that file doesn't seem to be importing react for jsx, just some hooks.
Do you have any further idea about what could be going on here?limited-farmer-52140
06/22/2022, 10:50 AMlimited-farmer-52140
06/22/2022, 10:52 AMlimited-farmer-52140
06/22/2022, 10:53 AM