why do i get “attempt to call global 'require' (a nil value)”?
snippet in lua

why do i get “attempt to call global 'require' (a nil value)”?

user5459

local require = require
local Class = Class
local io, table, string
    = io, table, string
local type, pairs, ipairs, assert
    = type, pairs, ipairs, assert

module(...)

local Camera = require 'Core.Camera.Camera'