Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when importing #37

Closed
CarlosUvaSilva opened this issue Mar 31, 2020 · 3 comments
Closed

Error when importing #37

CarlosUvaSilva opened this issue Mar 31, 2020 · 3 comments

Comments

@CarlosUvaSilva
Copy link

CarlosUvaSilva commented Mar 31, 2020

I have this error when I try to import react-image-annotate in my Create React App

./node_modules/material-survey/components/Survey/index.js
Module parse failed: Unexpected token (143:16)
You may need an appropriate loader to handle this file type.
|     }
|   }, _react2.default.createElement(_SurveyQuestion2.default, {
|     question: { ...q,
|       defaultAnswer: defaultAnswers[q.name]
|     },

Can somebody help me please

@seveibar
Copy link
Contributor

seveibar commented Apr 1, 2020

The segment of code posted is related to material survey. I wonder if this is due to a recent version? We're using react-image-annotate in the universal data tool without a problem and that's based on create react app.

@seveibar
Copy link
Contributor

seveibar commented Apr 1, 2020

Do you have a repository that reproduces the issue? That would let us investigate sooner

@CarlosUvaSilva
Copy link
Author

@seveibar thanks for your reply.

I had Reat 16 but an old version of CRA, after I upgraded my react-scripts package it started to work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants