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

Closed
Maxttier opened this issue Nov 12, 2024 · 4 comments
Labels
bug Something isn't working regression types

Comments

@Maxttier
Copy link

Maxttier 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

@Maxttier Maxttier 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
@Maxttier Maxttier 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
@Maxttier
Copy link
Author

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.

@pi0 pi0 added the bug Something isn't working label Jan 7, 2025
@pi0 pi0 closed this as completed in 7ded057 Jan 7, 2025
@Maxttier

This comment was marked as off-topic.

@Maxttier

This comment was marked as off-topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working regression types
Projects
None yet
Development

No branches or pull requests

2 participants