Skip to content
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

Module '"nitropack"' has no exported member 'NitroApp', Module '"nitropack/runtime"' has no exported member 'NitroApp'. Nitro package is empty. #2875

Open
mak7an opened this issue Nov 12, 2024 · 2 comments

Comments

@mak7an
Copy link

mak7an commented Nov 12, 2024

Environment

"nitropack": "^2.10.4",
csj

Reproduction

import { type NitroApp } from 'nitropack';

Describe the bug

If you previously imported any utility from #internal/nitro/* or nitropack/runtime/* you should change them to #imports to avoid issues.

Additional context

No #imports in what I do, I need direct import some how.

Logs

No response

@mak7an mak7an changed the title Module '"nitropack"' has no exported member 'NitroApp'. Module '"nitropack"' has no exported member 'NitroApp', Module '"nitropack/runtime"' has no exported member 'NitroApp'. Nov 12, 2024
@mak7an mak7an changed the title Module '"nitropack"' has no exported member 'NitroApp', Module '"nitropack/runtime"' has no exported member 'NitroApp'. Module '"nitropack"' has no exported member 'NitroApp', Module '"nitropack/runtime"' has no exported member 'NitroApp'. Nitro package is empty. Nov 12, 2024
@mak7an mak7an closed this as completed Nov 14, 2024
@mak7an
Copy link
Author

mak7an commented Nov 14, 2024

import { type NitroApp } from 'nitropack/types';

@pi0
Copy link
Member

pi0 commented Nov 14, 2024

Thanks for reporting dear @mak7an. It looks like a regression we had in 2.10. import { type NitroApp } from 'nitropack/types'; is the new way but we should also fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants