-
Notifications
You must be signed in to change notification settings - Fork 85
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
NODE_ENV error in component-react/src/utils.ts:44:6 #956
Comments
which typescript version are you using? |
"typescript": "^5" |
please provide the exact version number and your build setup. |
version 5.4.2 Also, what do you mean by my build setup |
you said
are you invoking |
Nextjs |
thanks. I cannot reproduce this. Can you post your tsconfig file? |
{ |
I think you can reproduce it by installing @livekit and @livekit/component-react in a Nextjs project and try building it locally |
we do this in a lot of places, for example here https://github.com/livekit-examples/meet and it doesn't show this error |
Select which package(s) are affected
@livekit/components-react
Describe the bug
(process?.env?.NODE_ENV === 'dev' ||
// eslint-disable-next-line turbo/no-undeclared-env-vars
process?.env?.NODE_ENV === 'development')
When building, the block of code throws an error:
Type error: This comparison appears to be unintentional because the types '"development" | "production" | "test"' and '"dev"' have no overlap.
Reproduction
@livekit/components-react
Logs
No response
System Info
Severity
blocking an upgrade
Additional Information
No response
The text was updated successfully, but these errors were encountered: