Closed thdoan closed 1 year ago
If "src/popup/popup.html"
is already in action.default_popup
, Rollup emits this error.
I'm curious, what is your use case for web accessible HTML files?
@jacksteamdev yeah I noticed that after removing "default_popup": "src/popup/popup.html"
from the action
key.
To make a long story short, I originally wanted to open the action popup from the context menu, but the Chrome team decided not to implement chrome.action.openPopup()
in MV3 (for now):
https://bugs.chromium.org/p/chromium/issues/detail?id=1245093
I think when I submitted this ticket I was trying to render popup.html
inside an iframe instead, which required me to add an entry in web_accessible_resources
. Now that I know this works, I have removed "default_popup": "src/popup/popup.html"
so this isn't an issue anymore.
Build tool
Vite
Where do you see the problem?
Describe the bug
When adding this to
manifest.json
:This error is displayed on build:
Reproduction
manifest.json
npm run build
orvite
Logs
No response
System Info
Severity
annoyance