Error: *.default is not a constructor

后端 未结 4 863
栀梦
栀梦 2020-12-15 15:04

I get the following error, when testing some javascript code, transpiled from a typescript file.

Here is the error:

Error: _mapAction2.default is not         


        
4条回答
  •  被撕碎了的回忆
    2020-12-15 15:28

    Since classes in javascript are syntactic sugar, I figured I'd try to solve this issue without them. For me, switching the architecture over to prototypes seems to have solved my issue. Posting in case anyone else runs into this issue but is already doing export default

提交回复
热议问题