Open samesfahani-tuplehealth opened 2 months ago
I'm also encountering the same issue with latest.
Getting the same issue here
package.json needs to be updated:
"require": { "default": "./dist/index.cjs.js", "types": "./dist/index.d.ts" }, "import": { "default":"./dist/index.es.js", "types": "./dist/index.d.ts" }
someone has made an attempt at doing this in the master branch but the result hasn't built to a release
Describe the bug
Error:
Required readings: https://github.com/arethetypeswrong/arethetypeswrong.github.io/blob/main/docs/problems/FalseCJS.md#common-causes https://arethetypeswrong.github.io/?p=react-square-web-payments-sdk%403.2.1
It seems like the proper declaration for typing in
package.json
should be something like this with thetypes
attribute completely removed:Your Example Website or App
https://stackblitz.com/edit/vitejs-vite-bwqota?file=src%2FApp.tsx
Steps to Reproduce the Bug or Issue
App.tsx
Expected behavior
Should not get a TS error.
Screenshots or Videos
No response
Platform
macOS, but presumably all.
Additional context
No response