Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't get app:include working when writing in lua #500

Open
FourierTransformer opened this issue Dec 25, 2016 · 0 comments
Open

Can't get app:include working when writing in lua #500

FourierTransformer opened this issue Dec 25, 2016 · 0 comments

Comments

@FourierTransformer
Copy link

I was trying to replicate the app:include from the lua workshop video, but couldn't get it working...

local lapis = require("lapis")
local app = lapis.Application()

-- add my api
app:include("api.v1")

return app

and when I try running it, I get a lua entry thread aborted: runtime error: ./app.lua:5: attempt to call method 'include' (a nil value)

Am I doing something wrong or is there a bug?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant