Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LRUCache dependency conflict for named exports #1970

Closed
tenfei4 opened this issue Apr 23, 2023 · 3 comments · Fixed by #2988
Closed

LRUCache dependency conflict for named exports #1970

tenfei4 opened this issue Apr 23, 2023 · 3 comments · Fixed by #2988

Comments

@tenfei4
Copy link

tenfei4 commented Apr 23, 2023

problem
in nuxt dev mode,it's all right. but built project done and execute node ./server/index.mjs find error.

Environment
Node.js v18.6.0
Nuxt v3.4.2
Nitro v2.3.3

report
file:///D:/node/nuxt_app/.output/server/chunks/node-server.mjs:7557
const parserCache$2 = new LRU({
^
TypeError: LRU is not a constructor
at file:///D:/node/nuxt_app/.output/server/chunks/node-server.mjs:7557:23
at ModuleJob.run (node:internal/modules/esm/module_job:193:25)
at async Promise.all (index 0)
at async ESMLoader.import (node:internal/modules/esm/loader:541:24)
at async loadESM (node:internal/process/esm_loader:83:5)
at async handleMainPromise (node:internal/modules/run_main:65:12)

@tenfei4
Copy link
Author

tenfei4 commented Apr 23, 2023

npm why lru-cache
[email protected]
node_modules/lru-cache
lru-cache@"^8.0.0" from [email protected]
node_modules/mysql2
mysql2@"^3.2.3" from the root project

[email protected]
node_modules/named-placeholders/node_modules/lru-cache
lru-cache@"^7.14.1" from [email protected]
node_modules/named-placeholders
named-placeholders@"^1.1.3" from [email protected]
node_modules/mysql2
mysql2@"^3.2.3" from the root project

[email protected]
node_modules/semver/node_modules/lru-cache
lru-cache@"^6.0.0" from [email protected]
node_modules/semver
semver@"^7.3.5" from [email protected]
node_modules/css-loader
css-loader@"^5.0.0" from @nuxt/[email protected]
node_modules/@nuxt/postcss8
@nuxt/postcss8@"^1.1.3" from @nuxtjs/[email protected]
node_modules/@nuxtjs/tailwindcss
dev @nuxtjs/tailwindcss@"^6.1.3" from the root project
semver@"^7.4.0" from [email protected]
node_modules/nitropack
nitropack@"^2.3.3" from [email protected]
node_modules/nuxt
dev nuxt@"^3.4.2" from the root project
semver@"^7.3.5" from [email protected]
node_modules/node-abi
node-abi@"^3.3.0" from [email protected]
node_modules/prebuild-install
prebuild-install@"^7.1.1" from [email protected]
node_modules/sharp
sharp@"^0.32.0" from the root project
semver@"^7.3.4" from [email protected]
node_modules/postcss-loader
postcss-loader@"^4.1.0" from @nuxt/[email protected]
node_modules/@nuxt/postcss8
@nuxt/postcss8@"^1.1.3" from @nuxtjs/[email protected]
node_modules/@nuxtjs/tailwindcss
dev @nuxtjs/tailwindcss@"^6.1.3" from the root project
semver@"^7.3.8" from [email protected]
node_modules/sharp
sharp@"^0.32.0" from the root project
semver@"^7.3.4" from [email protected]
node_modules/vscode-languageclient
vscode-languageclient@"^7.0.0" from [email protected]
node_modules/vite-plugin-checker
vite-plugin-checker@"^0.5.6" from @nuxt/[email protected]
node_modules/@nuxt/vite-builder
@nuxt/vite-builder@"3.4.2" from [email protected]
node_modules/nuxt
dev nuxt@"^3.4.2" from the root project
semver@"^7.3.5" from @mapbox/[email protected]
node_modules/@mapbox/node-pre-gyp
@mapbox/node-pre-gyp@"^1.0.5" from @vercel/[email protected]
node_modules/@vercel/nft
@vercel/nft@"^0.22.6" from [email protected]
node_modules/nitropack
nitropack@"^2.3.3" from [email protected]
node_modules/nuxt
dev nuxt@"^3.4.2" from the root project
semver@"^7.5.0" from @nuxt/[email protected]
node_modules/@nuxt/kit
@nuxt/kit@"3.4.2" from [email protected]
node_modules/nuxt
dev nuxt@"^3.4.2" from the root project
@nuxt/kit@"^3.0.0" from [email protected]
node_modules/nuxt-lazyimages
dev nuxt-lazyimages@"^0.2.0" from the root project
@nuxt/kit@"^3.0.0" from [email protected]
node_modules/nuxt-icons
dev nuxt-icons@"^3.1.0" from the root project
@nuxt/kit@"^3.3.3" from @nuxt/[email protected]
node_modules/@nuxt/telemetry
@nuxt/telemetry@"^2.2.0" from [email protected]
node_modules/nuxt
dev nuxt@"^3.4.2" from the root project
@nuxt/kit@"3.4.2" from @nuxt/[email protected]
node_modules/@nuxt/vite-builder
@nuxt/vite-builder@"3.4.2" from [email protected]
node_modules/nuxt
dev nuxt@"^3.4.2" from the root project
@nuxt/kit@"^3.3.1" from @nuxtjs/[email protected]
node_modules/@nuxtjs/tailwindcss
dev @nuxtjs/tailwindcss@"^6.1.3" from the root project
semver@"^7.3.4" from @nuxt/[email protected]
node_modules/@nuxt/postcss8
@nuxt/postcss8@"^1.1.3" from @nuxtjs/[email protected]
node_modules/@nuxtjs/tailwindcss
dev @nuxtjs/tailwindcss@"^6.1.3" from the root project

[email protected] dev
node_modules/unstorage/node_modules/lru-cache
lru-cache@"^9.0.3" from [email protected]
node_modules/unstorage
unstorage@"^1.4.1" from [email protected]
node_modules/nitropack
nitropack@"^2.3.3" from [email protected]
node_modules/nuxt
dev nuxt@"^3.4.2" from the root project

[email protected] dev
node_modules/@babel/helper-compilation-targets/node_modules/lru-cache
lru-cache@"^5.1.1" from @babel/[email protected]
node_modules/@babel/helper-compilation-targets
@babel/helper-compilation-targets@"^7.21.4" from @babel/[email protected]
node_modules/@babel/core
@babel/core@"^7.21.3" from [email protected]
node_modules/untyped
untyped@"^1.3.2" from [email protected]
node_modules/nuxt
dev nuxt@"^3.4.2" from the root project
untyped@"^1.3.2" from @nuxt/[email protected]
node_modules/@nuxt/kit
@nuxt/kit@"3.4.2" from [email protected]
node_modules/nuxt
dev nuxt@"^3.4.2" from the root project
@nuxt/kit@"^3.0.0" from [email protected]
node_modules/nuxt-lazyimages
dev nuxt-lazyimages@"^0.2.0" from the root project
@nuxt/kit@"^3.0.0" from [email protected]
node_modules/nuxt-icons
dev nuxt-icons@"^3.1.0" from the root project
@nuxt/kit@"^3.3.3" from @nuxt/[email protected]
node_modules/@nuxt/telemetry
@nuxt/telemetry@"^2.2.0" from [email protected]
node_modules/nuxt
dev nuxt@"^3.4.2" from the root project
@nuxt/kit@"3.4.2" from @nuxt/[email protected]
node_modules/@nuxt/vite-builder
@nuxt/vite-builder@"3.4.2" from [email protected]
node_modules/nuxt
dev nuxt@"^3.4.2" from the root project
@nuxt/kit@"^3.3.1" from @nuxtjs/[email protected]
node_modules/@nuxtjs/tailwindcss
dev @nuxtjs/tailwindcss@"^6.1.3" from the root project
untyped@"^1.3.2" from @nuxt/[email protected]
node_modules/@nuxt/schema
@nuxt/schema@"3.4.2" from [email protected]
node_modules/nuxt
dev nuxt@"^3.4.2" from the root project
@nuxt/schema@"3.4.2" from @nuxt/[email protected]
node_modules/@nuxt/kit
@nuxt/kit@"3.4.2" from [email protected]
node_modules/nuxt
dev nuxt@"^3.4.2" from the root project
@nuxt/kit@"^3.0.0" from [email protected]
node_modules/nuxt-lazyimages
dev nuxt-lazyimages@"^0.2.0" from the root project
@nuxt/kit@"^3.0.0" from [email protected]
node_modules/nuxt-icons
dev nuxt-icons@"^3.1.0" from the root project
@nuxt/kit@"^3.3.3" from @nuxt/[email protected]
node_modules/@nuxt/telemetry
@nuxt/telemetry@"^2.2.0" from [email protected]
node_modules/nuxt
dev nuxt@"^3.4.2" from the root project
@nuxt/kit@"3.4.2" from @nuxt/[email protected]
node_modules/@nuxt/vite-builder
@nuxt/vite-builder@"3.4.2" from [email protected]
node_modules/nuxt
dev nuxt@"^3.4.2" from the root project
@nuxt/kit@"^3.3.1" from @nuxtjs/[email protected]
node_modules/@nuxtjs/tailwindcss
dev @nuxtjs/tailwindcss@"^6.1.3" from the root project
peer @babel/core@"^7.0.0" from @babel/[email protected]
peer @babel/core@"^7.0.0" from @babel/[email protected]
node_modules/@babel/helper-create-class-features-plugin
@babel/helper-create-class-features-plugin@"^7.21.0" from @babel/[email protected]
node_modules/@babel/plugin-transform-typescript
@babel/plugin-transform-typescript@"^7.20.7" from @vitejs/[email protected]
node_modules/@vitejs/plugin-vue-jsx
@vitejs/plugin-vue-jsx@"^3.0.1" from @nuxt/[email protected]
node_modules/@nuxt/vite-builder
@nuxt/vite-builder@"3.4.2" from [email protected]
node_modules/nuxt
dev nuxt@"^3.4.2" from the root project
peer @babel/core@"^7.0.0-0" from @babel/[email protected]
node_modules/@babel/plugin-syntax-typescript
@nuxt/vite-builder@"3.4.2" from [email protected]
node_modules/nuxt
dev nuxt@"^3.4.2" from the root project
@babel/core@"^7.20.7" from @vitejs/[email protected]
node_modules/@vitejs/plugin-vue-jsx
@vitejs/plugin-vue-jsx@"^3.0.1" from @nuxt/[email protected]
node_modules/@nuxt/vite-builder
@nuxt/vite-builder@"3.4.2" from [email protected]
node_modules/nuxt
dev nuxt@"^3.4.2" from the root project

@tenfei4
Copy link
Author

tenfei4 commented May 5, 2023

How to solve this problem?

@sidorares
Copy link
Owner

@tenfei4 #2004 should fix the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants