- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 27.1k
Closed
Labels
Description
Is this a bug report?
yes.
I'm using the next branch with a monorepo including a cra app and a few nwb modules and am getting the following error:
Failed to compile.
../nwb-lib/es/index.js
/path/proj/packages/nwb-lib/es/index.js
  3:1  error  Import in body of module; reorder to top  import/first
See also insin/nwb#450
@Gaeron suggested to repost here.
Did you try recovering your dependencies?
yes
Which terms did you search for in User Guide?
n.a. I think
Environment
- node -v: 8.9.1
- npm -v: 5.7.1
- yarn --version(if you use Yarn): 1.5.1
- npm ls react-scripts(if you haven’t ejected):
Then, specify:
- Operating system: macos 10.13.4
- Browser and version (if relevant): n.a.
Steps to Reproduce
- Create a cra monorepo project
- with one package being a nwb component with an esbuild (web-module in my case if it matters)
- build the component and run the app
Expected Behavior
Should just run fine.
Actual Behavior
yarn start doesn't serve but instead shows the above error.
Reproducible Demo
I will try if this issue is not very straightforward.