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: 81
Reputation: 917

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: 33
Reputation: 873

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: 81
Reputation: 917

Post » Fri Dec 02, 2016 7:08 am

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

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
403
S
238
G
89
Posts: 24,653
Reputation: 196,143

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: 81
Reputation: 917

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: 81
Reputation: 917

Post » Mon Dec 05, 2016 12:59 pm

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


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 22 guests