wallet icon indicating copy to clipboard operation
wallet copied to clipboard

Unable to update Manifest v3

Open achalcode opened this issue 11 months ago • 2 comments

Hi

I tried to update the code manifest v3 but getting an error.

Some node module is not supported. We need to update the DOM and window request from background script.

Have you update the manifest or have you a any idea

Thanks

achalcode avatar Aug 07 '23 05:08 achalcode

@achalcode I faced the same issue The thing is the window is not supported in manifest v3 since a service worker is used to run the background process. I migrted to v3, fixed some issues, but I got stuck when the issue related to window arises. It needs to be replaced with something else see: https://stackoverflow.com/questions/73778202/using-window-globals-in-manifestv3-service-worker-background-script

bhavya3024 avatar Oct 12 '23 11:10 bhavya3024

UPDATE: service worker files in chrome v3 extension is unable to support imports which are dependencies installed through npm or yarn. I tried a sample boilerplate and bundled using parcel but got the following error: Uncaught TypeError: Failed to resolve module specifier "process". Relative references must start with either "/", "./", or "../". It can't resolve remote packages. only relative paths. @achalcode @bradleySuira @harshjv @GNSPS

bhavya3024 avatar Oct 13 '23 09:10 bhavya3024