rexrainbow / phaser3-rex-notes

Notes of phaser3 engine
MIT License
1.18k stars 260 forks source link

Property 'Board' does not exist on type 'typeof BoardPlugin'. #382

Closed songyukino1 closed 9 months ago

songyukino1 commented 9 months ago

I am writing a Board class in TypeScript, and following the example, I have written the following code. However, the italicized and bold part is being flagged with the error message mentioned in the title. What could be the issue? ` import BoardPlugin from "phaser3-rex-plugins/plugins/board-plugin"; class MyBoard extends BoardPlugin.Board.Board {

} `

rexrainbow commented 9 months ago
class MyBoard extends RexPlugins.Board.Board {
}

See this note

rexrainbow commented 9 months ago

Or import Board class directly.

songyukino1 commented 9 months ago

Thank you, I solved it by directly importing.