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.

> capacitor add android
✔ Installing android dependencies in 1.64s
✔ Adding native android project in: /Users/dan/apps/angular/monorepo/packages/capacitor-app/android in 52.64ms
✔ Syncing Gradle in 1.11s
✔ add in 2.80s
✔ Copying web assets from www to android/app/src/main/assets/public in 274.30ms
[error] Unable to find node_modules/@capacitor/core/native-bridge.js. Are you sure @capacitor/core is installed? This file is required for Capacitor to function

@capacitor/core should be found via node resolution algorithm

Issue Analytics

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

github_iconTop GitHub Comments

11reactions
jacob-8commented, Jun 1, 2020

I disagree. There is a need for Capacitor to work with monorepos. For example, a company has a long-standing website and are now using Ionic to build an app. The app and the website need to share services, interfaces, etc… and can’t easily do this outside the monorepo option without building and publishing a library on every change of the shared resources.

3reactions
y0nd0commented, Aug 26, 2020

I created a monorepo by following this guide. It looks good. Only one node_modules folder. Really great. But now I have to bring each app to the mobile device. It’s a monorepo with a bunch of Ionic apps. Each app uses the same dependencies, Cordova plugins and configs. I have no exp with Capacitor yet. But also no idea how to integrate Cordova or Capacitor in that Ionic monorepo. Is Ionic not oriented for mobile apps? So, monorepos should be supported.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is monorepo? (and should you use it?) - Semaphore CI
A monorepo is a version-controlled code repository that holds many projects. While these projects may be related, they are often logically ...
Read more >
Monorepo Explained
Gradle Build Tool provides support for parallel tasks via configuration, and task orchestration through its flexible Groovy or Kotlin DSL. natively supported ......
Read more >
Monorepos in Git | Atlassian Git Tutorial
A monorepo is a repository that contains more than one logical project. Read here to learn about conceptual challenges, performance issues and more....
Read more >
Monorepo Support | Render · Cloud Hosting for Developers
Monorepo Support helps you deploy just the services you need to eliminate unnecessary deploys, control build costs, and ship faster. Monorepo Support offers...
Read more >
A Guide to Monorepos for Front-end Code - Toptal
A monorepo or monorepository is a code management and architectural concept whereby you keep all your isolated bits of code inside one super...
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