Problem installing package from GitHub

I have recently created a library for node-sqlite3 bindings and tried to use it in another project I have started to develop.

Since the library is not in the package set, I installed it as per the relevant documentation of spago (GitHub - purescript/spago: 🍝 PureScript package manager and build tool powered by Dhall and package-sets).

spago can find the repository and fetch it in .spago directory but can not build the application with this error:

Error found:
in module Backend.Control.Db
at src/Backend/Control/Db.purs:5:1 - 5:35 (line 5, column 1 - line 5, column 35)

Module Database.SQLite3 was not found.
Make sure the source file exists, and that it has been provided as an input to the compiler.

Just before this error message there is the purs graph command written which I excerpted below:

[warn] "Failed to run `purs graph \".spago/aff/v6.0.0/src/**/*.purs\" ... \".spago/database-sqlite/998e45a05e10221cd4408a87759c6be4ca7e0c85/src/**/*.purs\" \".spago/datetime/v5.0.2/src/**/*.purs\" ... \"src/**/*.purs\" \"test/**/*.purs\"`. Error was:\n\"Error found:\\nin module Backend.Control.Db\\nat src/Backend/Control/Db.purs:5:1 - 5:35 (line 5, column 1 - line 5, column 35)\\n\\n  Module Database.SQLite3 was not found.\\n  Make sure the source file exists, and that it has been provided as an input to the compiler.\\n\\n\\nSee https://github.com/purescript/documentation/blob/master/errors/ModuleNotFound.md for more information,\\nor to contribute content related to this error.\\n\\n\\n\""

As you can see my package is in the purs graph parameter list. But still module in the package can not be found although the source is in the aforementioned directory.

As I am not experienced with PureScript package writing, I suspect doing a mistake in organization or configuration of the package.

Can you help me to solve this?

Thanks in advance.

Could this be a typo? Your module is called Database.Sqlite3, the compiler here is complaining about a missing Database.SQLite3

1 Like

Yes indeed! Thank you for pointing it out. One can be blind to his/her code sometimes!

1 Like