We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am following the documentation when setting up this awesome library with React and Typescript.
import {Provider as StyletronProvider, DebugEngine} from "styletron-react";
const debug = process.env.NODE_ENV === "production" ? void 0 : new DebugEngine();
Typescript gives a warning on the new DebugEngine()
new DebugEngine()
in step 1, import BrowserDebugEngine instead:
BrowserDebugEngine
import {BrowserDebugEngine,Provider as StyletronProvider} from "styletron-react";
const debug =process.env.NODE_ENV === "production" ? void 0 : new BrowserDebugEngine();
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
The text was updated successfully, but these errors were encountered:
I'm using // @ts-ignore to ignore this error.
// @ts-ignore
Sorry, something went wrong.
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
No branches or pull requests
I am following the documentation when setting up this awesome library with React and Typescript.
Typescript gives a warning on the
new DebugEngine()
in step 1, import
BrowserDebugEngine
instead: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
The text was updated successfully, but these errors were encountered: