Closed FavorMylikes closed 1 year ago
Add type: module
at the background in the manifest could solve this problem
But maybe we need to make some changes here
manifest.background = {
service_worker: SERVICE_WORK_DEV_PATH
};
Thank you for the correction, I have fixed the problem in v0.1.1, please try again.
Thank you for the correction, I have fixed the problem in v0.1.1, please try again.
Cool, Fixed
When I use
import
to invoke otherapi
, I got this error below:Is there any way to solve this?
https://github.com/Jervis2049/vite-plugin-crx-mv3/blob/e0c27aadfacaa7aa02736589e6f61437562c36a4/examples/crx-vue-drawer/src/background.ts