weird TypeError with TypeScript on createStore func
See original GitHub issueGiven the following implementation
I got this err: Uncaught TypeError: redux_zero_1.default is not a function
I look a little bit on the bundle settings and I found that the main file which is served by default isn’t on UMD format:
"main": "dist/redux-zero.js",
because of this:
I don’t have too much knowledge about this. I’ll keep looking but I need your help on this.
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (7 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for this @k1r0s
With
React
is the same thing with TypeScript. You can check out the Provider from Redux Zero and see how we importReact
:If you read this thread, it seems that this is how TypeScript works.
I’ll update the Docs.
https://github.com/k1r0s/rzero-imports-tmp here is the code, thanks in advantage