Jason_Feng

Results 5 comments of Jason_Feng

The reason I found is that nuxt builds convert mysql2's lru-cache dependency into a symbolic link. But I don't know how to fix it

@wellwelwel Initialize a nuxt project Install mysql2 dependencies, create a database connection, and build the project ![1](https://github.com/sidorares/node-mysql2/assets/97945705/11f422ba-ff18-4a26-819b-45c44e33a920)

enabled of nitro's experimental configuration`experimental: { legacyExternals: true }`,Use the old dependency algorithm to solve this problem.But the official documentation says that approach is unstable

@v0id-4lpz I solved this problem temporarily by building a script `scripts: { "build": "nuxt build --dotenv .env.prod && npm run del-lru-cache && npm run copy-lru-cache", "del-lru-cache": "rm -rf .output\\server\\node_modules\\mysql2\\node_modules\\lru-cache", "copy-lru-cache":...

What's the final solution @atypiape