question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

next@b2fd8db8 throws if monorepo with nwb modules

See original GitHub issue

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 https://github.com/insin/nwb/issues/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.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
gaearoncommented, Apr 3, 2018

🤔

In that case we should exclude “publishable” packages from linting.

0reactions
stale[bot]commented, Dec 8, 2018

This issue has been automatically closed because it has not had any recent activity. If you have a question or comment, please open a new issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How I split a 60 module mono repo in minutes by Vincent van ...
Once upon a time, I had to split up a large mono-repository at one of my customers… again. Like any proper mono-repo, it...
Read more >
Inside the pain of monorepos and hoisting
Working in a monorepo comes with a long list of pros, and a few cons. ... If X is a core module, a....
Read more >
Module's not resolving in typescript monorepo with Next.js ...
Without that line of text, trying to dev or build the app-1 project renders Type error: Cannot find module 'components/Component' or its ...
Read more >
Setting up a Monorepo with React Native You.I and Yarn
The errors Metro will throw. ... node node_modules/react-native/local-cli/cli.js start internal/modules/cjs/loader.js:895 throw err; ...
Read more >
Get your code together! Submodules, monorepo, or the ...
Whatever could be reused, should be. It's one of the first commandments we learn when we begin to study programming. If you have...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found