'Installing WatermelonDB from github gives "Unable to resolve module @nozbe/watermelondb/adapters/sqlite"

I am trying to compile a hello-world react-native app that has WatermelonDB configured. I am following the instructions given here and and here to set up the project for Watermelon.

I have found that if I install WatermelonDB using

yarn add @nozbe/watermelondb

the application launches correctly in android and iOS. But if I install from github:

yarn add https://github.com/Nozbe/WatermelonDB.git

I get the following error:

Unable to resolve module error

Does anyone know why installing directly from github results in this error when running the application?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source