Open alxdnlnko opened 6 years ago
@alxdnlnko I'm in the same situation... what do you mean by 'fork invariant and added the es-module there'? Thanks.
@andreabioli, there are three ways of solving this problem:
I choose the 3 way, because I have no time to wait. Just made myself some tiny util-functions (like createAction) in my project.
@alxdnlnko Oh, this is really what I call 'pragmatism'! :-) I will follow the same, then... :-) Thanks again!
Hello. I'm trying to use
redux-actions
in Polymer 3 project with module imports (without any browserify compilation), butredux-actions
depends on some libraries, that doesn't provide module exports, for example:invariant
andlodash.camelcase
.So i'm getting such errors:
Uncaught SyntaxError: The requested module '../../../lodash.camelcase/index.js' does not provide an export named 'default'
I tried to fork
invariant
and added the es-module there, and it worked ok. Lodash can be substituted withlodash-es
.But does
redux-actions
really have to depend on theese libraries?invariant
andcamelcase
are not so big functions and can be simply included inredux-actions
, this would make theredux-actions
more independent.