Phase 3 with Typescript: Error “Property ‘rexUI’ does not exist on type ‘Scene’” #287
Unanswered
dtturcotte
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
@rexrainbow I have a question regarding the original post in this thread related to RexUIPlugin with Typescript: “Property ‘rexUI’ does not exist on type ‘Scene’” - the issue is in the first code block listed below.
Versions
Phaser: 3.55.2
Typescript: 4.6.4
Package Manager: Webpack v4.31.0
EDIT: RexUI seems to work if I use it directly in the scene, but if I pass the scene to another instantiated class, let's say
npc.ts
(below), it doesn't.Code
npc.ts (where RexUI is used):
exploration.ts (Scene)
game.ts:
Beta Was this translation helpful? Give feedback.
All reactions