joy-framework / joy

A full stack web framework written in janet
https://joy.swlkr.com
MIT License
535 stars 30 forks source link

Getting Started - module joy/db error (Joy 0.7.2) #45

Closed sperelson closed 4 years ago

sperelson commented 4 years ago

Followed the Getting Started in the readme and got an error after creating the account route:

error: could not find module joy/db

Resolved by changing the import in src/routes/account.janet:

- (import joy/db)
+ (import db)

Running on a Mac (Mojave 10.14.6). Joy Version: 0.7.2. Janet Version:1.8.1

Thanks 🙌🏻

swlkr commented 4 years ago

So yeah I just made this change, didn't realize I was going to get a slew of new people using it 😅

Two other things that would work for the generated routes are just deleting (import joy/db) and making sure (import joy :prefix "") or (use joy) is there, that will give you the db/ functions as well

swlkr commented 4 years ago

Closed by 06b1316439e2840074d753f1efa42eac6d3cd1be