Chapter 1 - Creating an App

Hi all,

I’m working on the BalloonTap project, when I refreshed the corona simulator I received the error message:

main.lua:20: attempt to call global ‘required’ (a nil value) stack traceback:

main.lua:20: in main chunk

Appreciate any help,

Thanks.

Can you post your code around line 20 and perhaps line lines above it?  Make sure to use copy/paste and click on the blue <> button in the bold, italic, row of formatting controls.

Rob

I second the request that you post a snippet of the code in question, but let me ask.

Did you type this:

local physics = require( "physics" )

or this:

local physics = required( "physics" )

Double check the places where you have calls to ‘require’ and be sure you didn’t accidentally type ‘required’

Good catch Ed!

Thanks for replying.

I scrolled down to check the coding, every line is where it should be I also checked the files that were download, but I was unable to find anything that said local physics.

Thanks again.

That was it!

I rechecked I entered required, when I removed the letter d the word require changed color.

Thank you so much, both of you.

Can you post your code around line 20 and perhaps line lines above it?  Make sure to use copy/paste and click on the blue <> button in the bold, italic, row of formatting controls.

Rob

I second the request that you post a snippet of the code in question, but let me ask.

Did you type this:

local physics = require( "physics" )

or this:

local physics = required( "physics" )

Double check the places where you have calls to ‘require’ and be sure you didn’t accidentally type ‘required’

Good catch Ed!

Thanks for replying.

I scrolled down to check the coding, every line is where it should be I also checked the files that were download, but I was unable to find anything that said local physics.

Thanks again.

That was it!

I rechecked I entered required, when I removed the letter d the word require changed color.

Thank you so much, both of you.