Thread:Extension talk:Scribunto/attempt to index field 'text' (a nil value) in luasandbox

I am using Scribunto extension and I see this error in the final pages: attempt to index field 'text' (a nil value)

When I use mw.text. Any idea why I get this error and how to fix it. This happens when I use luansandbox.