lru-cache missing [Unresolved]
Hey I updated our nuxt3 frontend today using
nuxt upgrade
and also updated all deps. Unfortunately when building the Project and pushing it to our server we can't run it because of this error: Cannot find package 'lru-cache' imported from /var/www/vod-stage/server/index.mjs
.
yarn dev locally and also using node .output/server/index.mjs
locally in the project works, but not when build.3 Replies
These are my deps:
and this is the full error stack:
Okay I just found the Issue I think?
for some reason lru-cache is symlinked
but I am not sure why
yea some dependencies where symlinked, and even after correcting them by manually adding the folders I am still having trouble.
The App starts now but as soon as I try to view it, I see this in the frontend:
Cannot find module '/var/www/vod-stage/server/node_modules/global/window' imported from /var/www/vod-stage/server/chunks/app/_nuxt/index-1PucZdpf.mjs Did you mean to import global/window.js?
bump
BumpOne of your dependencies uses lru-cache, find out which one.
Maybe its solved when you add lru-cache to your dependencies
It’s babble and that is used by some vue dependency.
I tried adding it. It’s mainly caused by the weird symlink it creates instead of copying the dependencies.
lru-Cache, Video.js and 2 others are being symlinked instead of copied
And if I manually add them. I get.
Any idea what I can do ?