You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
babel typescript does not support "const enum" and "namespace"
removing const from enum and also
refactoring the names in the namespace areas or moving them to their own module is needed to make it compatible.
The text was updated successfully, but these errors were encountered:
hey - quick and dirty fix - i just successfully hacked around this for now by changing the const enums to regular enums (I guess this may have a performance overhead?), and refactoring the b2ParticleSystem.ts file to remove the namespace - not using the particle system so can't vouch for that still working at run time but it compiles and my project runs fine!
I have not worked the project that needed this since reporting this issue. I have looked around and it seems that babel now supports namespaces however it still does not support "const enum" per Feature Request Add Support for const enum in TS #8741 . Simply removing const from in front of all the enum declarations will make it babel compatible, however that might incur a small performance hit depending on where the enum's are used. It will be a while before I get back to this project so I cant provide a PR any time soon.
babel typescript does not support "const enum" and "namespace"
removing const from enum and also
refactoring the names in the namespace areas or moving them to their own module is needed to make it compatible.
The text was updated successfully, but these errors were encountered: