First time using Knit - :Await() not working?

I’m trying out Knit for the first time, and as the first framework I’ve ever used. I’m following this tutorial by Sleitnick to learn the basics of usage, and in the first few minutes he calls Knit.Start():Await().

I’m unsure what I’m doing wrong, but the script throws an error when I try to do this. The error is as follows:

ServerScriptService.KnitServerRuntime:3: attempt to call missing method 'Await' of table

My project is set up more or less the same as Sleitnick’s, but one difference that I noticed is that the version of Knit that I am using comes in a “Packages” folder, while his version is simply the Knit module script.

This does mean that the tutorial could be outdated, but I still think that I might be doing something wrong.

Thanks for the help!

Try the following;

Knit.OnStart():await()

Above is what I use for my projects :+1:
And yes, assume any tutorial on YouTube is outdated; Follow the Knit Documentation

2 Likes

Yeah sorry, that tutorial is a bit outdated. I moved to the default Promise library instead of a modified version, which uses camelCase for all methods instead.

1 Like