tolgee / tolgee-cli

The Tolgee CLI
MIT License
15 stars 11 forks source link

Dynamic default value ERROR in weird case #64

Closed stepan662 closed 3 months ago

stepan662 commented 8 months ago

I'm getting Dynamic default value error in this case:

import { Alert, Link } from '@mui/material';
import { T } from '@tolgee/react';

import { LINKS } from 'tg.constants/links';

const TOLGEE_APP = 'https://app.tolgee.io';

export function EeLicenseHint() {
  return (
    <Alert severity="info">
      <T
        keyName="ee_licence_key_hint"
        params={{
          a: (
            <Link
              href={`${TOLGEE_APP}${LINKS.GO_TO_SELF_HOSTED_BILLING.build()}`}
            />
          ),
        }}
      />
    </Alert>
  );
}

Seems like regression as it was not complaining in version 1.0.1, but it does in version 1.3.2.

cyyynthia commented 3 months ago

This may be related to #83, considering there is a self-closing tag?

stepan662 commented 3 months ago

Yeah, it's fixed 🙂