Comments (5)
Do you mean that you used it without having it installed, aka in your package.json? If so, then just install it yourself, I see in the examples, an app that uses lru-cache, https://github.com/vercel/next.js/blob/fedb675520e0de8f360f8d2e262acdf76b4f0491/examples/api-routes-rate-limit/package.json, you should use it as such.
I reckon that you got impacted by vendor-ing of the package. Next.js still has it, but as a compiled dependency, so that we, the users, don't need to download and reinstall it every time. However, that belongs to the internals of the framework, and you should not rely on that. Install the package on your project, and take it from there.
from next.js.
Do you mean that you used it without having it installed, aka in your package.json? If so, then just install it yourself, I see in the examples, an app that uses lru-cache, https://github.com/vercel/next.js/blob/fedb675520e0de8f360f8d2e262acdf76b4f0491/examples/api-routes-rate-limit/package.json, you should use it as such.
I reckon that you got impacted by vendor-ing of the package. Next.js still has it, but as a compiled dependency, so that we, the users, don't need to download and reinstall it every time. However, that belongs to the internals of the framework, and you should not rely on that. Install the package on your project, and take it from there.
Nextjs has an announcement space? Is there anything about update dependencies? If so, where should I follow them?
from next.js.
I think, from a project point of view, you are over stepping your boundaries, if you want to rely on a transient dependency like that. Such packages are never part of the project's public API, and because of that, it is your sole responsibility to deal with the consequences of having done so.
from next.js.
Hi -- if your project depends on lru-cache
, you should install it in your project. Next.js uses it internally, but as @icyJoseph mentioned, you should not rely on Next.js providing it. We have not removed this dependency from our internal usage, and without a link to a reproduction, we're not able to help debug further.
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)
- Metadata is not generated for intercepting routes HOT 1
- Monorepo self-referencing package imports don't resolve in certain cases with Turbopack
- Creating instance of URL with basePath gets mangled HOT 1
- Creating instance of URL with basePath gets mangled
- Regression since `v14.2.0-canary.24`: `loading.tsx` triggered on first `revalidatePath()` call HOT 2
- Nested parallel routes slot rendered after navigating back HOT 2
- graphql-request and caching HOT 4
- Client side navigation not working properly in latest next@rc for dev HOT 1
- Intercepted route not generating metadata
- `static` Router Cache is used once, the value of `staleTimes.dynamic` is applied the next time. HOT 3
- Nextjs reloads page when i go to not-found page HOT 2
- page arises a error everytime when app republished
- Getting redirected to the copied link unexpectedly. HOT 1
- Modal by parallel routing on slow connection not working. Clicking on Link before hydration causes full reload instead of showing modal HOT 1
- ChunkLoadError: Loading chunk app/layout failed. (timeout: http://localhost:3000/_next/static/chunks/app/layout.js)
- ISR: Cached 404 status never change even if page is not a not-found anymore HOT 1
- Suspense does not work with Next.js 15 RC and Vercel HOT 1
- Custom events don't work in custom elements
- Tailwindcss content when using src directory HOT 1
- Flask + NextJs works locally but Flask api do not work on Vercel
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.