phetsims / bending-light

"Bending Light" is an educational simulation in HTML5, by PhET Interactive Simulations.
http://phet.colorado.edu/en/simulation/bending-light
GNU General Public License v3.0
8 stars 8 forks source link

CT Object is possibly 'undefined'. #407

Closed KatieWoe closed 2 years ago

KatieWoe commented 2 years ago
bending-light : build
Build failed with status code 1:
Running "report-media" task

Running "clean" task

Running "build" task
Fatal error: tsc failed with code: 1
stdout:
js/intro/model/IntroModel.ts(303,35): error TS2532: Object is possibly 'undefined'.
js/intro/model/IntroModel.ts(303,39): error TS2532: Object is possibly 'undefined'.
js/intro/model/IntroModel.ts(303,43): error TS2532: Object is possibly 'undefined'.
js/intro/model/IntroModel.ts(303,47): error TS2532: Object is possibly 'undefined'.

4 problems found.

stderr:

Snapshot from 5/3/2022, 9:55:40 AM
samreid commented 2 years ago

Fixed, thanks! Closing.