Closed valleybay closed 2 years ago
I had the a similar issue but with React component as the content script.
It did work for me when I built the extension by running npm run build
but not when npm run dev
.
Thanks for your comment @bigandy! I have verified that this is also the case for me!
Any one have any thoughts on what it would take to solve this for npm run dev
? HMR is essential
I now see that this is a duplicate of #462
Build tool
Vite
Where do you see the problem?
Describe the bug
When attempting to inject a Vue-component into a pages HTML via a content script I am unable to import .vue files into the Javascript file.
From
content-script.js
The error (from the attached log) happens as soon as I
import App from './App.vue'
.Reproduction
From
vite.config.js
Logs
System Info
Severity
blocking all usage of RPCE