Skip to content

"export const enObj: I18nObjects | undefined = undefined;" within src/i18n/locales/enObj.tsx will crash component #3

Open
@sjhoeksma

Description

@sjhoeksma

In the example code of a plugin the src/i18n/locales/enObj.tsx is filled with an object. Because I did not required the object i made it undefined but this will throw an exception which crashes the plugin boot.

The code which wil crash the plugin
export const enObj: I18nObjects | undefined = undefined;

Code as work arround

export const enObj: I18nObjects = {
  defaultData: [
  ],
};

Activity

changed the title [-]"export const enObj: I18nObjects | undefined = undefined;" within src/i18n/locales/enObj.tsx with crash component[/-] [+]"export const enObj: I18nObjects | undefined = undefined;" within src/i18n/locales/enObj.tsx will crash component[/+] on Feb 24, 2024
self-assigned this
on Mar 28, 2024
moved this to 🆕 New in Lowcoderon Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

🆕 New

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    "export const enObj: I18nObjects | undefined = undefined;" within src/i18n/locales/enObj.tsx will crash component · Issue #3 · lowcoder-org/lowcoder-create-component-plugin