Skip to content
This repository has been archived by the owner on Oct 20, 2022. It is now read-only.

Cannot create externs for Phaser 3 #39

Open
chilliams opened this issue May 6, 2018 · 1 comment
Open

Cannot create externs for Phaser 3 #39

chilliams opened this issue May 6, 2018 · 1 comment

Comments

@chilliams
Copy link

I'm using this URL: https://cdn.jsdelivr.net/npm/[email protected]/dist/phaser.js

I get this error: "TypeError: a.F is not a function. Check console for stack trace."

@jmmk
Copy link
Owner

jmmk commented May 7, 2018

It works when I run it without advanced compilation, so I'm not sure what's going on there.

I found a potential fix - replacing the ClojureScript set (#{}) with an ES6 Set, but I noticed a regression that comes as a side effect if multiple references to an object are held (the second time the object is encountered it is ignored), so I'm exploring a little more.

I think keeping a set of "path names" like #{Phaser.Cameras.Controls.Fixed.X, Phaser.Cameras.Controls.FixedKeyControl.Y} instead of a set of object references might work and would allow multiple properties to point to the same object (in Phaser specifically there are some deprecated properties, and even though they reference the same thing both the old and the new should be surfaced)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants