react-moment icon indicating copy to clipboard operation
react-moment copied to clipboard

1.1.0, 1.1.1 - error when starting the pooled timer

Open bubenkoff opened this issue 5 years ago • 9 comments

Uncaught TypeError: Super expression must either be null or a function

Getting this error in production build only, for some reason

bubenkoff avatar Dec 26 '20 14:12 bubenkoff

Is there any kind of stacktrace? Any differences between dev and production, like different operating systems?

headzoo avatar Dec 30 '20 17:12 headzoo

as it's a production build, there's not much known unfortunately it's a browser app, no difference in browsers prod vs dev do you run the recent version in production with no problem?

bubenkoff avatar Dec 30 '20 20:12 bubenkoff

Same for me, happen only in production. something related to react-moment.

Operation systems difference:

dev - Windows. production - Linux.

typeError

maoryadin avatar Jan 17 '21 09:01 maoryadin

Solved by downgrade to version 0.9.7

@bubenkoff

maoryadin avatar Jan 19 '21 08:01 maoryadin

@maoryadin yes, I also 'solved' it like this

bubenkoff avatar Jan 19 '21 10:01 bubenkoff

Are either of you using UglifyJS in your webpack config? Adding keep_fnames: true to your UglifyJS config might fix the problem.

headzoo avatar Jan 19 '21 20:01 headzoo

@headzoo yes I do, but keeping ALL the fnames will increase the bundle quite a lot, which function name exactly should be preserved?

bubenkoff avatar Jan 19 '21 21:01 bubenkoff

Same problem here

martinvergara26 avatar Jan 21 '21 15:01 martinvergara26

same with reactjs 18.02 , any new solution ?

loudbel avatar Feb 28 '23 19:02 loudbel