Open koukalp opened 5 years ago
I'm using // @ts-ignore
to ignore this error.
thanks for answer. That doesn't really fix anything for me:
// @ts-ignore
process.env.NODE_ENV === "production" ? void 0 : new BrowserDebugEngine();
This repo only maintains and publishes flow-types. I suggest sending a PR to DefinitelyTyped if you find it helpful
I am following the documentation when setting up this awesome library with React and Typescript.
Import the dependencies:
init the debugger:
Typescript gives a warning on the
new DebugEngine()
in step 1, import
BrowserDebugEngine
instead:use it in step 2:
React app won't load with the following error:
The debug feature would be quite useful. Everything else works flawlessly. Would be great if smbd could give me a hint on how to fix my issue