next@b2fd8db8 throws if monorepo with nwb modules
See original GitHub issueIs 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
node -v
: 8.9.1npm -v
: 5.7.1yarn --version
(if you use Yarn): 1.5.1npm 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
es
build (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.
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (6 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
🤔
In that case we should exclude “publishable” packages from linting.
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.