Open edmundg opened 3 months ago
A simple fix for this is adding a new
when registering the plugin:
if (process.env.NODE_ENV === 'development') {
import("@melonjs/debug-plugin").then((debugPlugin) => {
// automatically register the debug panel
plugin.register(new debugPlugin.DebugPanelPlugin, "debugPanel");
});
}
After running
npm install
then when runningnpm run dev
an error is thrown in TypeScript when registering the debug panel. This prevents the typescript application from transpiling.