I had the game working until i added the player from the third person tutorial

[Network.js?id=54487848&branchId=7574cff3-7b2a-4161-bb0e-04ea29914569:66]: Uncaught ReferenceError: socket is not defined

ReferenceError: socket is not defined
at https://launch.playcanvas.com/api/assets/files/Network.js?id=54487848&branchId=7574cff3-7b2a-4161-bb0e-04ea29914569:66:1

[movement.js?id=54488176&branchId=7574cff3-7b2a-4161-bb0e-04ea29914569:1]: Uncaught ReferenceError: require is not defined

ReferenceError: require is not defined
at https://launch.playcanvas.com/api/assets/files/Ammo/movement.js?id=54488176&branchId=7574cff3-7b2a-4161-bb0e-04ea29914569:1:14

[Network.js?id=54487848&branchId=7574cff3-7b2a-4161-bb0e-04ea29914569:6]: socket is not defined

ReferenceError: socket is not defined
at scriptType.Network.initialize (https://launch.playcanvas.com/api/assets/files/Network.js?id=54487848&branchId=7574cff3-7b2a-4161-bb0e-04ea29914569:6:5)
at ScriptComponent._scriptMethod (https://code.playcanvas.com/playcanvas-stable.dbg.js:63497:19)
at ScriptComponent._onInitialize (https://code.playcanvas.com/playcanvas-stable.dbg.js:63522:34)
at ScriptComponentSystem._callComponentMethod (https://code.playcanvas.com/playcanvas-stable.dbg.js:64111:49)
at ScriptComponentSystem._onInitialize (https://code.playcanvas.com/playcanvas-stable.dbg.js:64120:9)
at Function._helper (https://code.playcanvas.com/playcanvas-stable.dbg.js:43302:12)
at Function.initialize (https://code.playcanvas.com/playcanvas-stable.dbg.js:43307:9)
at Application.start (https://code.playcanvas.com/playcanvas-stable.dbg.js:70416:20)
at https://launch.playcanvas.com/editor/scene/js/launch.js:14472:25
at Application._preloadScripts (https://code.playcanvas.com/playcanvas-stable.dbg.js:70155:5)

This is the code I got and I dont know how to fix it or what to do can anyone help me?

it’s because you havent copied everything you may aswell fork the 3rd person tutorial then it should work fine

1 Like