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

Type Error when importing #55

Open
Ayax0 opened this issue Nov 9, 2024 · 0 comments · May be fixed by #56
Open

Type Error when importing #55

Ayax0 opened this issue Nov 9, 2024 · 0 comments · May be fixed by #56
Labels

Comments

@Ayax0
Copy link

Ayax0 commented Nov 9, 2024

Environment

redirect-ssl@3.0.0
typescript@5.6.3

Reproduction

Import the Library in a new Nuxt Project

Describe the bug

I tried to import the redirectSSL in a Nuxt project and got a Typescript error that due Types are exported incorrectly.

Additional context

No response

Logs

Could not find a declaration file for module 'redirect-ssl'. '.../node_modules/.pnpm/redirect-ssl@3.0.0/node_modules/redirect-ssl/dist/index.mjs' implicitly has an 'any' type.
  There are types at '.../node_modules/redirect-ssl/dist/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'redirect-ssl' library may need to update its package.json or typings.
@Ayax0 Ayax0 added the bug label Nov 9, 2024
@Ayax0 Ayax0 linked a pull request Nov 9, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant