Open TheColaber opened 1 year ago
In vite i can add //@ts-ignore
and it starts the dev server fine (and adds it to the resulting manifest.json)
Unfortunately it does not matter since it cannot be loaded in the browser itself since mainworld scripts do not support chrome.runtime
apis on which we depend for loading modules. Thats why jack blogged about it here with instruction.
Theres also whole thread about it here #695.
Does it work for you in rollup?
TypeError: Cannot read properties of undefined (reading 'getURL') at index.tsx-loader.js:9:24 at index.tsx-loader.js:20:5 at index.tsx-loader.js:22:3
Build tool
Rollup
Where do you see the problem?
Describe the bug
https://github.com/crxjs/chrome-extension-tools/blob/5bf6711ec75e74f31b22474a7465a72a052089e0/schema/manifest-v3.schema.json#L272 In the schema the property "world" is missing which is in the mv3 docs: https://developer.chrome.com/docs/extensions/mv3/content_scripts/#functionality
This property is pretty new: https://bugs.chromium.org/p/chromium/issues/detail?id=1330986
Currently when I use the property, it creates an error that an additional property exists and prevents any further execution.
Reproduction
.
Logs
System Info
Severity
blocking all usage of RPCE