You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
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 **
https://arethetypeswrong.github.io/?p=%40mxenabled%2Fweb-widget-sdk%400.0.11
Expected behavior
No TSC errors loading the TS types.
The text was updated successfully, but these errors were encountered: