useStorage seems not working
Environment
Nitro: 2.12.9
node: v24.11.0
Reproduction
https://github.com/RahulDey12/nitro-check please clone and run it's just a single route.
Describe the bug
just created a new project, trying to import useStorage but not working
Additional context
No response
Logs
It's because you disabled the auto-imports feature with imports: false in nitro.config.ts.
In this case, you should import explicitly with import { useStorage } from 'nitropack/runtime'.
Okay thanks. It works now. For the new project template, it should be removed, I think.
For the new project template, it should be removed
Do you mean Nitro's starter template (v2)? I didn't see the useStorage usage in this template.
As for the default imports: false, please refer to Depend less on auto imports
Got it