Comments (13)
Everything under 0.10.x is not compatible with the 1.0.0 line of vite, I've contacted people at vite about this since there were no evident breaking changes in beta.12
so this might be a bug with export mangling, ...
This could also be related to how modules are loaded, ....
from prefresh.
This was fixed in [email protected]
from prefresh.
Good spot, seems like prepublishOnly didnβt run. Hope thatβs not a changesets bug π
from prefresh.
It's not related with path change (I had the same bug before). It happens when I upgrade @prefetch/vite to 0.10.X.
If we rollback to 0.9.0 we loose hotreload but everything work again
from prefresh.
I have updated vite from 1.0.0-beta.11 and from 1.0.0-beta.12 onwards, the bug occurs
from prefresh.
@yyx990803 Any update on this bug? I'm guessing this is definitely due to export mangle?
Happy to assist however I can!
from prefresh.
Sorry to ask, but in my case it's still broken - do I need to update the config?
from prefresh.
@wiesson what's broken? I just installed the new vite version and it seemed to work π
make sure it sais vite v1.0.0-rc.4
when you do vite
. Also ensure you have the latest @prefresh/vite
from prefresh.
Hmm, not on my machine π
$ foo node --version
v14.7.0
npm init vite-app foo --template preact
cd foo
npm install
npm run dev
Updated package.json
$ foo cat package.json
{
"name": "foo",
"version": "0.0.0",
"scripts": {
"dev": "vite",
"build": "vite build"
},
"dependencies": {
"preact": "^10.4.6"
},
"devDependencies": {
"@prefresh/vite": "^0.10.2",
"vite": "^1.0.0-rc.4"
}
}
Which looks good
$ foo npm run dev
> [email protected] dev /Users/wiese/Dev/foo
> vite
vite v1.0.0-rc.4
Port 3000 is in use, trying another one...
Dev server running at:
> Local: http://localhost:3001/
> Network: http://192.168.0.80:3001/
from prefresh.
Hmm, we should move this issue to vite. It works just fine here π I'll try with a different node verison in abit
from prefresh.
@wiesson I just tried it with my own node v14 and it just works, quite confused at the moment π
from prefresh.
@JoviDeCroock. I notice this issue is fixed by 42ac94f. But install @prefresh/[email protected]
code is @prefresh/[email protected]
.The code ( path.includes('node_modules')
) is lost.
from prefresh.
Thanks @underfin - I can confirm that this fixes the issue π
from prefresh.
Related Issues (20)
- Port 449 to `main`
- @prefresh/vite not refreshing HOT 6
- Cannot import @prefresh/next on next12 - esm6
- Signal stops working after hot-reload
- @prefresh/vite (@prefresh/core) memory leak bug - "this.forceUpdate on an unmounted component" HOT 1
- Context value populated incorrectly when created using a helper function. HOT 2
- Implement SWC plugin HOT 3
- Update dependencies HOT 1
- Migrate to pnpm HOT 1
- Migrate to vitest HOT 1
- Consider deprecations
- useEffect cleanup triggering multiple times after updates? HOT 2
- HMR confuses global signals HOT 3
- Hot reloading doesn't work, the application is always fully reloading.
- Look into test flakiness
- Infinite re-rendering when using `webpack-hot-middleware` HOT 1
- `@prefresh/vite` types canβt be resolved when project uses modern TypeScript resolution modes
- No "exports" main defined in @prefresh/vite/package.json HOT 1
- webpack multicompile. hot-reload doesn't work
- Prefresh Webpack shouldn't assume the user is using NextJS HOT 1
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 prefresh.