-
-
Notifications
You must be signed in to change notification settings - Fork 624
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
[nuxt] [request error] [unhandled] [500] LRU is not a constructor #2001
Comments
I'm also facing the same issue
package.json
|
Also facing this issue, but with nuxt2 |
@cesartagplus, are you seeing this error in the version |
@Beipy Hello, I have encountered the same issue. How did you solve this issue? |
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 |
@JasonFeng03, can you share a basic repro of this error? |
@wellwelwel Initialize a nuxt project Install mysql2 dependencies, create a database connection, and build the project |
@JasonFeng03 Hi, I solved this problem by using |
enabled of nitro's experimental configuration |
Same error here After a
Here is my deps "devDependencies": {
"bcryptjs": "^2.4.3",
"drizzle-kit": "^0.20.14",
"nuxt": "^3.10.3",
"nuxt-security": "^1.1.0",
"vite-plugin-vuetify": "^2.0.1",
"vue": "^3.4.15",
"vue-router": "^4.2.5",
"vuetify": "^3.5.3"
},
"overrides": {
"@parcel/watcher": "~2.1.0"
},
"dependencies": {
"@mdi/font": "^7.4.47",
"@sidebase/nuxt-auth": "^0.6.7",
"drizzle-orm": "^0.29.3",
"jsonwebtoken": "^9.0.2",
"mailersend": "^2.2.0",
"moment": "^2.30.1",
"mysql2": "^3.9.2",
"next-auth": "^4.22.5",
"vee-validate": "^4.12.5",
"yup": "^1.3.3"
} |
@v0id-4lpz I solved this problem temporarily by building a script |
I was able to run it during normal development, but got an error after the build package.
package.json The file configuration is as follows:
The text was updated successfully, but these errors were encountered: