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

Cannot find Typescript declarations when building Vue 3 project #28

Closed
bobmoff opened this issue Jun 26, 2023 · 5 comments · Fixed by #29
Closed

Cannot find Typescript declarations when building Vue 3 project #28

bobmoff opened this issue Jun 26, 2023 · 5 comments · Fixed by #29

Comments

@bobmoff
Copy link

bobmoff commented Jun 26, 2023

Getting this error when building the project

src/App.vue:5:23 - error TS7016: Could not find a declaration file for module '@axiomhq/js'. '/Users/___/node_modules/@axiomhq/js/dist/esm/index.js' implicitly has an 'any' type.
  There are types at '/Users/___/node_modules/@axiomhq/js/dist/types/index.d.ts', but this result could not be resolved when respecting package.json "exports". The '@axiomhq/js' library may need to update its package.json or typings.

5 import { Axiom } from '@axiomhq/js'

I dont get any errors in dev mode:

npm run dev

But I do get the same error in VSCode

@bobmoff
Copy link
Author

bobmoff commented Jun 26, 2023

Here is a repo to check it out:

https://github.com/IMGNRY/axiom_ts_issue

@bahlo
Copy link
Member

bahlo commented Jun 26, 2023

Thanks for raising this issue and I appreciate the repro repo 🙏 This is fixed in #29, expect this in a v0.1.2 soon ⏰

@bobmoff
Copy link
Author

bobmoff commented Jun 26, 2023

🤘🏻

@bobmoff bobmoff closed this as completed Jun 26, 2023
@bahlo
Copy link
Member

bahlo commented Jun 26, 2023

@bobmoff Can you try again with 0.1.2?

@bobmoff
Copy link
Author

bobmoff commented Jun 27, 2023

Works! 🙌🏻

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

Successfully merging a pull request may close this issue.

2 participants