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
Steps to reproduce:
import {Users} from '@spacehq/sdk'
Import this into a create-react-app.
It will fail with this message:
`
uncaught TypeError: TextDecoder is not a constructor
at Object../node_modules/multibase/src/util.js (util.js:6)
at webpack_require (bootstrap:856)
at fn (bootstrap:150)
at Object../node_modules/multibase/src/base.js (base.js:3)
at webpack_require (bootstrap:856)
at fn (bootstrap:150)
at Object../node_modules/multibase/src/constants.js (constants.js:4)
at webpack_require (bootstrap:856)
at fn (bootstrap:150)
at Object../node_modules/multibase/src/index.js (index.js:7)
at webpack_require (bootstrap:856)
at fn (bootstrap:150)
at Object. (fsUtils.ts:2)
at Object../node_modules/@spacehq/storage/dist/utils/fsUtils.js (fs)
`
I tried adding 'web-encoding' to my node-modules, but it didn't make a difference.
The text was updated successfully, but these errors were encountered:
Hi @jordanlesich - this seems to be an issue with the TextDecoder not being polyfilled in properly. Can you try with the latest version of CRA? Our engineers @ChriLnth and @gpuente tried this out with the latest version of CRA and it seems to be working.
If that doesn't work, if you can share your source we can take a look further into it.
Steps to reproduce:
import {Users} from '@spacehq/sdk'
Import this into a create-react-app.
It will fail with this message:
`
uncaught TypeError: TextDecoder is not a constructor
at Object../node_modules/multibase/src/util.js (util.js:6)
at webpack_require (bootstrap:856)
at fn (bootstrap:150)
at Object../node_modules/multibase/src/base.js (base.js:3)
at webpack_require (bootstrap:856)
at fn (bootstrap:150)
at Object../node_modules/multibase/src/constants.js (constants.js:4)
at webpack_require (bootstrap:856)
at fn (bootstrap:150)
at Object../node_modules/multibase/src/index.js (index.js:7)
at webpack_require (bootstrap:856)
at fn (bootstrap:150)
at Object. (fsUtils.ts:2)
at Object../node_modules/@spacehq/storage/dist/utils/fsUtils.js (fs)
`
I tried adding 'web-encoding' to my node-modules, but it didn't make a difference.
The text was updated successfully, but these errors were encountered: