You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I am using React in Ruby project with react_on_rails gem
Everything is ok, but when I start Jest test this error appears:
● Test suite failed to run
/Users/alexandar/projects/ezeewallet.com/app/javascript/bundles/DatePicker/DatePickerRange.jsx:1
({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,global,jest){import PropTypes from 'prop-types';
^^^^^^^^^
SyntaxError: Unexpected identifier
at new Script (vm.js:80:7)
at Object.<anonymous> (spec/javascripts/member/DatePicker.spec.js:15:24)
Hi, we use this issue tracker for bugs in React itself. In your case indeed it looks like ES Modules syntax isn't getting compiled. Maybe it would help to change
Hi,
I am using React in Ruby project with react_on_rails gem
Everything is ok, but when I start Jest test this error appears:
● Test suite failed to run
package.json:
.babelcr:
Am I missing something?
Regards,
Alex
The text was updated successfully, but these errors were encountered: