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

Package.json Type issues #101

Open
maccuaa opened this issue Jan 29, 2024 · 0 comments
Open

Package.json Type issues #101

maccuaa opened this issue Jan 29, 2024 · 0 comments

Comments

@maccuaa
Copy link

maccuaa commented Jan 29, 2024

Describe the bug

Using the @mxenabled/web-widget-sdk in a TypeScript project causes TSC issues because the MX widget SDK package.json incorrectly lists the types.

Steps to reproduce

Install @mxenabled/web-widget-sdk in a TypeScript project.

** Error **

Could not find a declaration file for module '@mxenabled/web-widget-sdk'. '/Users/andrew.maccuaig/Projects/mx-lunch-money-sync/node_modules/@mxenabled/web-widget-sdk/dist/esm/index.js' implicitly has an 'any' type.
  There are types at '/Users/andrew.maccuaig/Projects/mx-lunch-money-sync/node_modules/@mxenabled/web-widget-sdk/dist/types/src/index.d.ts', but this result could not be resolved when respecting package.json "exports". The '@mxenabled/web-widget-sdk' library may need to update its package.json or typings.ts(7016)

https://arethetypeswrong.github.io/?p=%40mxenabled%2Fweb-widget-sdk%400.0.11

Expected behavior

No TSC errors loading the TS types.

maccuaa added a commit to maccuaa/web-widget-sdk that referenced this issue Jan 29, 2024
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

No branches or pull requests

1 participant