-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error loading css modules in vite 4.4.8+ #126
Comments
@samrum still with the same problem, do you still support this plugin? |
Can you create a small repo that reproduces the issue? |
Avoid using dynamic imports
browser.scripting.executeScript({
target: { tabId: sender.tab.id },
files: ['path/myscript.js'],
});
webExtension({
// other configuration options
additionalInputs: {
styles: [...],
html: [...],
scripts: [
// Add the path to your additional script here
"path/myscript.js",
],
},
}), Hope this helps 😉 |
When I try to upgrade vite to a version higher than 4.4.7, after building the extension, the following messages appear in the console and cause the application to crash:
I'm using tailwind, but I have tried with a random css module and the same thing happens.
As usually, the extension works correctly in development mode.
The text was updated successfully, but these errors were encountered: