DEV Community

Discussion on: Advanced Config for CRXJS Vite Plugin

Collapse
 
cruelengine profile image
B Abhineeth Bhat

I have an error with the dynamic import of a content script in background script.
I'm trying to do :
import myScript from './content?script' but i get a compilation error as well as "Cannot find module './content?script' or its corresponding type declarations.ts(2307)"

How do i solve it ?