Hello, everyone.
in the package import rc-scroll-anim
, there was no problem with the development in dev environment, but an error was reported when it was run after compilation. After typing log, I found that the content of import in the two modes was not the same. It"s strange that I didn"t find anything wrong with the source code. The code is as follows:
// ScrollAnim
{Element, Event, Link, OverPack, Parallax, Link, scrollScreen}
// ScrollOverPack
function ScrollOverPack () {
// ...
}
production environment:
// ScrollAnim
{default: {Element, Event, Link, OverPack, Parallax, Link, scrollScreen}}
// ScrollOverPack
undefined
I would like to ask all the teachers, have you encountered the same situation?