Comments (5)
Glad to hear. Thank you for confirming!
from next.js.
Workaround proposed in #67673
from next.js.
Workaround
In speaking with @eps1lon, it appears that versions other than [email protected]
and [email protected]
should not be used, since they will cause production problems, whereas this is just a development problem.
Upgrade to [email protected]
and [email protected]
versions when using latest canary [email protected]
I retrieved these versions from the App Router reproduction template:
- https://github.com/vercel/next.js/blob/canary/examples/reproduction-template/package.json#L10-L11
from next.js.
Opened a PR to downgrade the App Router reproduction template to [email protected]
and [email protected]
(even though this causes this problem reported above) because apparently non-19.0.0-rc.0
versions have production problems:
from next.js.
@eps1lon thanks for the PR #67673, merge and publish in [email protected]
🎉
I've confirmed that this resolves the issue in my reproduction:
pnpm dev
> @ dev /Users/k/p/repro-next-js-v15-react-rc-0-sass-webpack-require-not-a-function
> next dev
▲ Next.js 15.0.0-canary.77
- Local: http://localhost:3000
✓ Starting...
✓ Ready in 3s
○ Compiling / ...
✓ Compiled / in 2.7s (482 modules)
GET / 200 in 2884ms
✓ Compiled /favicon.ico in 176ms (275 modules)
GET /favicon.ico 200 in 273ms
○ Compiling /non-home ...
✓ Compiled /non-home in 831ms (546 modules)
GET /non-home 200 in 426ms
GET /non-home 200 in 921ms
GET /non-home 200 in 18ms
GET / 200 in 80ms
GET /favicon.ico 200 in 21ms
GET /non-home 200 in 7ms
Here's the diff in the branch:
from next.js.
Related Issues (20)
- Impossible to Server-Render Client Components in API Routes
- Differences in the case of parameters in dynamic routing cause a crash. HOT 1
- Parse error with pnpm package from private git repo in `next dev` HOT 2
- Route intercept does not work in production with a dynamic segment like [lang] or [locale] in the root of the app
- Next with NX using tailwind takes over 20 min to compile HOT 1
- Rewrites not working with django backend - infinite rewrites
- The error page is generated together with the normal page HOT 3
- [15.0.0-canary.77] - Introduced `45kb` bundle size increase from baseline HOT 7
- --turbo has trouble detecting client boundaries with headless ui
- App Router 14.2.5 Setting a cookie in a Server Action Failing HOT 2
- Basic CSS Cascade Issue with Client Components HOT 3
- Inconsistent Image Loading with Case-Sensitive Extensions HOT 2
- [Bug] Static site generation: `output: export` and `trailingSlash:true` doesnt add /index.html suffix to routes
- Middleware can't detect image requests HOT 9
- APP Router - ROUTERGROUP issue in prod build deployment to linux system HOT 1
- Docs: Clarity on the width and height properties of the Image component HOT 4
- APP Router - ROUTERGROUP issue in prod build deployment to linux system
- Server actions reset uncontrolled and break controlled forms
- can retrieve process.env by destructuring assignment, eg process.env.NEXT_PUBLIC_ENV HOT 1
- cann't retrieve process.env by destructuring assignment, eg process.env.NEXT_PUBLIC_ENV 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 next.js.