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: [
  ],
};

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