Comments (2)
Confirmed. This is an intermittent problem for me. My theory is that Chrome is trying to read the manifest before Rollup is done writing it, which would make it a Rollup bug, since the plugin hook writeBundle
is supposed to run after all files have been written.
Relatedly, I've noticed an error saying that the manifest isn't valid (and Chrome disables the extension), which would fit in with the above theory.
@avi12 I'm releasing a patch under beta to delay reload by 100 ms and see if that helps. You can configure the delay length like so:
// default delay is 100ms
simpleReloader({ reloadDelay: 100 })
Let me know if this fixes the issue for you, and I'll release it under main
!
from chrome-extension-tools.
Unfortunately, I need #86 to be resolved first so I can test this issue's fix
from chrome-extension-tools.
Related Issues (20)
- crxjs does not support HTTPS flag in vite HOT 1
- Vite build for firefox
- inject.js error HOT 2
- Add React components interaction with content script example on the docs HOT 12
- Vite error in production build HOT 4
- Files imported with ?raw not updating after changes
- import of images in content_scripts are resulting in 404 HOT 3
- chrome.storage.local is undefined in content script
- `vite-plugin` breaks Vite dev server when `build.rollupOptions.input`s are present HOT 1
- Upgrade monorepo pnpm version to 8.x
- HRM and service script loader causes modules to be loaded twice with vite HOT 2
- Π‘anβt build a project with vite version newer than 5.0.11 HOT 10
- unable to run the dev script command HOT 3
- @crxjs/vite-plugin will break the build if build.rollupOptions.inputs added HOT 1
- Example won't work on firefox HOT 2
- [crx:manifest-post] Content script fileName is undefined: "src/content.ts" HOT 3
- Created manifest.json in build is not similar to what was passed using defineManifest in dev mode for Firefox HOT 1
- Build fails when development environment works. HOT 6
- Extensions do not work with Orion browser for iOS HOT 1
- Add support for Edge and Firefox HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chrome-extension-tools.