Open vladkrasn opened 3 hours ago
Node.js: 22 Nitro: 2.10
https://stackblitz.com/edit/github-f7duzj?file=nitro.config.ts,server%2Fplugins%2Fdb.ts
[nitro] [unhandledRejection] ReferenceError: Cannot access 'instances' before initialization
Seems like plugin that executes SQL is run before Nitro initializes the default sqlite database.
Worked fine in 2.9.7
No response
Environment
Node.js: 22 Nitro: 2.10
Reproduction
https://stackblitz.com/edit/github-f7duzj?file=nitro.config.ts,server%2Fplugins%2Fdb.ts
Describe the bug
[nitro] [unhandledRejection] ReferenceError: Cannot access 'instances' before initialization
Seems like plugin that executes SQL is run before Nitro initializes the default sqlite database.
Additional context
Worked fine in 2.9.7
Logs
No response