Comments (6)
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.
This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
from next.js.
Related Issues (20)
- Cannot name a folder "index" inside the app directory. HOT 4
- Using `revalidateTag()` inside dynamic route handler is unstable HOT 1
- Using `revalidateTag()` inside dynamic route handler is unstable HOT 2
- Cannot use import alias if route path starts with period HOT 1
- Dynamic `import()` function usage behaves strangely, prevents server-only code HOT 1
- Client error with development message on PRODUCTION. HOT 1
- missing sourcemaps in app router and cannot debug with breakpoints HOT 2
- Docs: Learn Next.js Chapter 9 HOT 2
- next/link <Link> is not loading AMP page components from non-AMP page, I have to use <a> tag only then it renders AMP components which resets the router.
- Parent `loading` is not mounted when child's one is missing HOT 2
- Vercel deployment failed after commit changes to repository
- Error when using `experimental.workerThreads` and webpack config
- Time-based cache revalidation does not work when calling fetch with manually created Request object HOT 1
- Module incorrectly persists between hot updates (HMR) in the browser HOT 4
- Redirects don't work in production. The page times out HOT 5
- MQTT.JS example: the useEffect return cause client closure
- next/dynamic from external package causes hydration errors for combination of pages and app routers
- Licensing: 14.2.5 bundles MPL-licensed @vercel/og HOT 1
- Swc causing error in production. Related to citation-js and citeproc. HOT 8
- Error in dev mode with turbopack using Chakra-UI components from server components 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 next.js.