Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Nevoic1996yMost likely a JS versioning issue. The import syntax is an ECMA6 feature, which has spotty support.
-
@Nevoic what made me angry is all other imports from other dependencies are working, only "moment" is causing this crash, if I use require() it works, if I use import it crash
-
Nevoic1996y@gitpush there's some technical difference between them that alludes me. I had a similarish issue today, where some function wasn't recognized if I used a certain import tactic, but if I used the other one it was.
So it probably also has something to do with how they're exporting it.
This environment really makes me miss Kotlin & Maven. None of this weird shit happens there lol -
@Nevoic true I am ok writing the same app twice than having to suffer from this type of issues because after all those are just some useless things to be good enough to waste time on
Related Rants
Wasted 7 hours for this:
import moment from 'moment'
Should be:
var moment = require('moment')
What happened? When app running in debug mode all is working without issues! When generating release APK, it crashes when using moment
Fucking hybrid shit apps...
rant
dafuq
send help
ios
android