Skip to content

next@b2fd8db8 throws if monorepo with nwb modules #4249

Closed
@bebbi

Description

@bebbi

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

  1. node -v: 8.9.1
  2. npm -v: 5.7.1
  3. yarn --version (if you use Yarn): 1.5.1
  4. npm ls react-scripts (if you haven’t ejected):

Then, specify:

  1. Operating system: macos 10.13.4
  2. Browser and version (if relevant): n.a.

Steps to Reproduce

  1. Create a cra monorepo project
  2. with one package being a nwb component with an es build (web-module in my case if it matters)
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions