Skip to content
New issue

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

process.env.NODE_ENV undefined when importing React libraries #382

Open
kennethnym opened this issue Dec 3, 2019 · 2 comments
Open

process.env.NODE_ENV undefined when importing React libraries #382

kennethnym opened this issue Dec 3, 2019 · 2 comments

Comments

@kennethnym
Copy link

If I import React libraries like recharts that requires a peer dependency of React, the widget will fail to load, throwing

undefined is not an object (evaluating process.env.NODE_ENV)

If I do not install React, then the widget will throw an error saying unable to find package "react".

@entropitor
Copy link

I have the same issue, this blocks writing widgets that update internally, e.g. to update the clock every second

@MynockSpit
Copy link

Have you tried using the built-in react version? i.e. instead of import React from 'react', do import { React } from 'uebersicht'.

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

No branches or pull requests

3 participants