Skip to content

Fixing import issue with Jest 23.6 breaks using class properties in React 16.6.3 #1

@interglobalmedia

Description

@interglobalmedia

FYI: fixing the import issue with Jest breaks using class properties shorthand and breaks dev build. Get the following in Terminal when running npm run start script:

ERROR in ./src/App.js

/Users/mariacam/Development/text-to-speech-app/src/App.js
2:18 error Parse errors in imported module './components/text/Text': Unexpected token = (6:11) import/namespace
2:18 error Parse errors in imported module './components/text/Text': Unexpected token = (6:11) import/default
2:18 warning Parse errors in imported module './components/text/Text': Unexpected token = (6:11) import/no-named-as-default
2:18 warning Parse errors in imported module './components/text/Text': Unexpected token = (6:11) import/no-named-as-default-member

✖ 4 problems (2 errors, 2 warnings)

Metadata

Metadata

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions