Closed adnux closed 6 years ago
CRA/Babel is probably configured to ignore ES6 code from node_modules. Use /lib or update your Babel config.
More specifically:
Instead of
import { ACTIONS, EVENTS } from 'react-joyride/es/constants';
Use
import { ACTIONS, EVENTS } from 'react-joyride/lib/constants';
Fixed the problem for me.
I had the same problem with import { ACTIONS, EVENTS } from 'react-joyride/es/constants';
The problem was not to use the version react-joyride: ^1.11.4
but to install the newest 2.0.0-15 with yarn add react-joyride@next
More specifically:
Instead of
import { ACTIONS, EVENTS } from 'react-joyride/es/constants';
Use
import { ACTIONS, EVENTS } from 'react-joyride/lib/constants';
Fixed the problem for me.
Works for me. Thanks.
import { ACTIONS, EVENTS } from 'react-joyride/es/constants';