Open
Description
Is this a bug report?
Yes
Did you try recovering your dependencies?
Yes
Which terms did you search for in User Guide?
(Write your answer here if relevant.)
Environment
Running npx create-react-app --info
does not seem to work. Getting:
Please specify the project directory:
create-react-app <project-directory>
For example:
create-react-app my-react-app
Run create-react-app --help to see all options.
However I am using:
Node v8.11.3
Yarn 1.9.4
npm 6.4.1
react-scripts 2.0.0-next.2150693d
Steps to Reproduce
- Create a new Create React App (The actual App)
- Create another Create React App (The "Library")
- Link them together: Import a component from the Library into the App
This used to work with react-scripts 2.0.0-next.a671462c
Expected Behavior
The app should compile just fine as it used to in 2.0.0-next.a671462c
Actual Behavior
Application fails to compile with "Syntax error: Unexpected token" in the component, that was attempted to be imported from the other application.
To me it seems like the babel loader is somehow not transpiling the imported component.