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

Could not find a declaration file for module '@unleash/proxy-client-vue' #27

Closed
Ked57 opened this issue Apr 16, 2024 · 4 comments · Fixed by #28
Closed

Could not find a declaration file for module '@unleash/proxy-client-vue' #27

Ked57 opened this issue Apr 16, 2024 · 4 comments · Fixed by #28
Labels
bug Something isn't working

Comments

@Ked57
Copy link
Contributor

Ked57 commented Apr 16, 2024

Describe the bug

When I use the package in a vue + typescript + vite application with "type": "module" I get the error

Could not find a declaration file for module '@unleash/proxy-client-vue'. '.../node_modules/.pnpm/@Unleash[email protected][email protected]/node_modules/@unleash/proxy-client-vue/dist/index.es.js' implicitly has an 'any' type.
There are types at '.../node_modules/@unleash/proxy-client-vue/dist/index.d.ts', but this result could not be resolved when respecting package.json "exports". The '@unleash/proxy-client-vue' library may need to update its package.json or typings.ts(7016)

Steps to reproduce the bug

  1. Install the package in a vue + typescript + vite application with "type": "module"
  2. When importing the unleash plugin
  3. Typescript should throw an error as shown above

Expected behavior

No error from typescript

Logs, error output, etc.

No response

Screenshots

No response

Additional context

No response

Unleash version

No response

Subscription type

Open source

Hosting type

Self-hosted

SDK information (language and version)

0.1.0

@andreas-unleash
Copy link
Contributor

Hi @Ked57 , thanks for bringing this in. I will run it by the team and get back to you

@Ked57
Copy link
Contributor Author

Ked57 commented Apr 16, 2024

Hi, I opened a PR with a potential fix 😄 thank you

@andreas-unleash
Copy link
Contributor

Hi @Ked57 , we just released v0.1.1 with your fix. Thank you for contributing!

@Ked57
Copy link
Contributor Author

Ked57 commented Apr 18, 2024

thank you !

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

Successfully merging a pull request may close this issue.

2 participants