-
Notifications
You must be signed in to change notification settings - Fork 511
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
Cannot import from nitropack/runtime
#2305
Labels
Comments
@MickL You can use the following import method ↓ import { defineCachedEventHandler } from "#imports" |
pi0
changed the title
No export for
Cannot import from Mar 25, 2024
defineCachedEventHandler
to import fromnitropack/runtime
You are right. While (current) recommendation is using (also updated your issue report with a reproduction please consider doing it in next issues 🙏🏼 ) |
This was referenced Mar 25, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reproduction (@pi0): https://stackblitz.com/edit/unjs-nitro-starter-w9u6yx?file=server%2Froutes%2Findex.ts,nitro.config.ts&title=Nitro%20Starter
Describe the bug
I am trying to figure out how to use Nitro without auto imports. I know
defineEventHandler
is imported fromh3
but I cant find any module exportingdefineCachedEventHandler
,nitropack
is not exporting it:The text was updated successfully, but these errors were encountered: