Open tony-dominic opened 4 months ago
Facing same issue while importing plasmo storage dynamically
Not sure, but have you tried importing using the url/scheme syntax?
import myFile from "url:./path/to/my/file/something.js"
The url: scheme will automatically resolve the something.js asset and add it to the web_accessible_resources declaration in the built bundle. The above myFile variable will be a string containing the URL to the asset:
see doc here: https://docs.plasmo.com/framework/content-scripts#importing-resources
What is the example you wish to see?
Hi there!
I'm experiencing an issue when trying to implement lazy loading for components using React.lazy within Plasmo's Shadow UI.
Is there any context that might help us understand?
Specifically, I'm unable to access my lazily imported route, and I keep encountering the following error:
function Home() { return (
Home
); }