How do I fix JS error in preview?

Get help using Construct 2

Post » Wed Nov 30, 2016 1:47 pm

Hello everyone,

I get the error under this message, how can i fix this?

Javascript error!
TypeError: inst is null
http://localhost:50000/preview.js, line 6000 (col 7)

This may be a bug in Construct 2 or a third party plugin or behavior - please report it to the developer following the bug report guidelines. Subsequent errors will be logged to the console.
Image

Coin Clicker 2 [Play store]
B
15
S
2
Posts: 75
Reputation: 905

Post » Wed Nov 30, 2016 8:01 pm

Can you check what's in that line of code?
B
9
S
4
G
1
Posts: 32
Reputation: 871

Post » Thu Dec 01, 2016 12:22 pm

Walessio wrote:Can you check what's in that line of code?


I checked it, its a small line wich gets instance variables i guess... It's a line from construct 2, nothing from a plugin or something.
Image

Coin Clicker 2 [Play store]
B
15
S
2
Posts: 75
Reputation: 905

Post » Fri Dec 02, 2016 7:08 am

Yeah but what's written there?
B
9
S
4
G
1
Posts: 32
Reputation: 871

Post » Fri Dec 02, 2016 12:12 pm

You should report this kind of thing to the Bugs forum, following all the bug report requirements.
Scirra Founder
B
397
S
236
G
88
Posts: 24,423
Reputation: 194,560

Post » Fri Dec 02, 2016 12:38 pm

Ashley wrote:You should report this kind of thing to the Bugs forum, following all the bug report requirements.


Oh, oke thank you!
I thought this was not a bug but a problem i did by accident on my project.
Image

Coin Clicker 2 [Play store]
B
15
S
2
Posts: 75
Reputation: 905

Post » Mon Dec 05, 2016 12:28 pm

Walessio wrote:Yeah but what's written there?


Code: Select all
var type = inst.type;
Image

Coin Clicker 2 [Play store]
B
15
S
2
Posts: 75
Reputation: 905

Post » Mon Dec 05, 2016 12:59 pm

I guess you should follow Ashley's adivce
B
9
S
4
G
1
Posts: 32
Reputation: 871


Return to How do I....?

Who is online

Users browsing this forum: beohs, KTML5 and 13 guests