Description
It's quite frustrating that a very well documented issue is just automatically closed after a few months because it's marked stale, but I understand why such a thing would happen. Anyway, you can consider this a comment to this issue opened just a few months ago: #5865
(I'll even move my comment to that thread if it's unlocked and delete this issue once I move it there to keep things cleaner)
I am also having an unexpected token error on the first jsx angle bracket <
I have components I placed in my package.json, which are pointing to git repo urls. Everything was working, until I need to create some webpack aliases. So I had to eject, and then the first error I got was this unexpected token error.
I saw this related issue: #3491 But I'm quite sure @derpoho has exactly pinned the issue.
I looked through his repo demonstrating the issue, and wanted to note his changes from a fresh create-react-app:
-Added import Packaged from './components/Packaged'
to App.js
This folder is very very simple. Just package.json with main entry pointing to pure functional component that returns a div: https://github.com/derpoho/cra-packaged-components-error/tree/master/src/components/Packaged
Then he ejected.