Closed
Description
Is this a bug report?
Not sure.
Did you try recovering your dependencies?
Yes.
Which terms did you search for in User Guide?
react-scripts, babel-loader
Environment
System:
OS: macOS High Sierra 10.13.6
CPU: x64 Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
Binaries:
Node: 8.12.0 - ~/.nvm/versions/node/v8.12.0/bin/node
Yarn: 1.10.1 - /usr/local/bin/yarn
npm: 6.4.1 - ~/.nvm/versions/node/v8.12.0/bin/npm
Browsers:
Chrome: 69.0.3497.100
Firefox: 62.0
Safari: 12.0
npmPackages:
react: 16.5.2
react-dom: 16.5.2
react-scripts: 2.0.3
npmGlobalPackages:
create-react-app: Not Found
Steps to Reproduce
- Create a yarn workspace project (multiple, independent ES6 packages -- 1 module should be CRA2)
- Create a file in CRA2 module that imports a value from the local ES6 module dependency (a value that has been defined with FlowJS syntax).
- Run
react-scripts start
and it should produce an error
Expected Behavior
The babel-loader
instance within my CRA2 module should be able to transpile + remove Flow types from the imported ES6 module.
Actual Behavior
babel-loader
fails with a SyntaxError according to the browser console output.
WebStorm gave a slightly different output:
Reproducible Demo
N/A
Metadata
Metadata
Assignees
Labels
No labels