Plasmo does not compile a tsx file.
Hello, I'm developing an extension with Plasmo and I'm facing an issue during the compilation of a tsx file. For more context, my content.ts file creates an iframe element and injects it into the HTML page where the extension runs. Initially, I created a frame.html file that was successfully injected as an iframe on the page. The problem is that I want to replace this frame.html file with frame.tsx, but this file is not being compiled. As a result, I'm getting the following error message: 'Denying load of chrome-extension://bklpniikecdnikfcpppnnjooffaaokbl/frame.tsx. Resources must be listed in the web_accessible_resources manifest key in order to be loaded by pages outside the extension.'
4 Replies
You would want to use the
tabs
page feature to get the tsx turn into a page first, then refers to the tab page's HTMLThanks for your advice, I'll try that
Excuse me, I think I still need help if you're available
@Axel has reached level 1. GG!
That's good ! I look at this page : https://github.com/PlasmoHQ/examples/blob/main/with-tabs/ it helps me !
GitHub
examples/with-tabs at main · PlasmoHQ/examples
🔰 Example projects that demonstrate how to use the Plasmo Framework and integrate with popular tools - examples/with-tabs at main · PlasmoHQ/examples