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
With an ESM environment ("type": "module" in package.json), the default import is not what we want:
$ node
Welcome to Node.js v16.3.0.
Type ".help" for more information.
> import('redux-mock-store').then(console.info)
Promise { <pending> }
> [Module: null prototype] {
__esModule: true,
default: { default: [Function: configureStore] }
}
As we can see: the module have two default which does not match the TypeScript typing expected by @types/redux-mock-store: default: { default: [Function: configureStore] }
Version: "redux-mock-store": "^1.5.4"
The text was updated successfully, but these errors were encountered:
With an ESM environment (
"type": "module"
in package.json), the default import is not what we want:As we can see: the module have two
default
which does not match the TypeScript typing expected by @types/redux-mock-store:default: { default: [Function: configureStore] }
Version:
"redux-mock-store": "^1.5.4"
The text was updated successfully, but these errors were encountered: