I'm working on a game using spark ar, by following the tutorial from youtube (blinking game tutorial).
apparently when I was working there was an error in the script
const Scene = require('Scene');
export const Diagnostics = require('Diagnostics');
const Patches = require("Patches");
Promise.all([
Scene.root.findFirst('number'),]).then(onReady);
function onReady(assets) {
var counterNumber = assets[0];
var scoreNumber = p.outputs.getScalar("score");
scoreNumber.then(e => {
e.monitor().subscribe(value => {
counterNumber.text = value.newValue.toString();
});
});
}
Error : Possible Unhandled Promise Rejection: ReferenceError: Property 'p' doesn't exist
question from:
https://stackoverflow.com/questions/65952779/how-to-solve-javascript-unhandled-promise-rejection-and-property-p-doesnt 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…