Comments (3)
Are you asking about Preact's NextJS plugin (next-plugin-preact
), or Preact itself?
It looks like the v9.0.0 release of Next supports React 16.x, so there shouldn't be any issues there (theoretically) in swapping in preact/compat
. Compatibility in this case is mostly up to Next; while Preact offers nearly full compat with React, Next still needs to facilitate the aliasing.
from next-plugin-preact.
Yes, Next@9 should be fully supported. It's a bit old so I'm not entirely sure whether the next-plugin-preact
does too much or too little but following the steps that we do there should be enough to make it work.
- replace your react dependencies with the stub one from preact
- maybe add
prefresh
if you needfast-refresh
no idea if that was supported in v9
from next-plugin-preact.
@JoviDeCroock and @rschristian yeah was the plugin but also the preact version, but I did some changes and I upgraded the next to 10, for this project had a lot of breaking/amounts of cash but all good now.
thanks very much guys!
from next-plugin-preact.
Related Issues (20)
- #validateDependencies doesn't work well with monorepo environment
- Plugin dependency requirements break testing abilities HOT 1
- Missing `@babel/cli`, `@babel/core`, `@babel/runtime`, `next` dependencies HOT 12
- Missing peerDependency `preact-ssr-prepass` to install commands or in peerDependency replace `react-ssr-prepass` with `preact-ssr-prepass`
- Cannot find module 'preact/compat' when using the next function
- Supporting Preact with Next.js v12 HOT 4
- Duplicate <link rel="canonical" /> when use in nextjs
- Package subpath './compat/jsx-runtime.js' is not defined by "exports" in preact/package.json HOT 1
- ESM imports in Next.js >= 12 break page rendering (hooks etc.) HOT 2
- Project status HOT 1
- Error on fresh install with next 12.0.10 HOT 4
- Bug: <option> elements have a duplicate selected attribute, resulting in HTML validation errors HOT 1
- next.js update to 12v - building crashed HOT 7
- Cannot read property '__H' of undefined HOT 8
- Warning: next-head-count is missing in Next 12.2 HOT 2
- Calling reload/refresh creates new preact instance
- Error: Objects are not valid as a child. Encountered an object with the keys {0,1,2,3,4,5,6,7,8,9,10}. HOT 2
- Unable to install - ERR_PACKAGE_PATH_NOT_EXPORTED HOT 2
- Nextjs 13 compatibility? HOT 6
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 next-plugin-preact.