components-js icon indicating copy to clipboard operation
components-js copied to clipboard

NODE_ENV error in component-react/src/utils.ts:44:6

Open godwinmat opened this issue 5 months ago • 10 comments

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

MacOS

Severity

blocking an upgrade

Additional Information

No response

godwinmat avatar Sep 10 '24 21:09 godwinmat