Skip to content

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

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

Open
sjhoeksma opened this issue Feb 24, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@sjhoeksma
Copy link

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: [
  ],
};
@sjhoeksma sjhoeksma 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 Feb 24, 2024
@FalkWolsky FalkWolsky self-assigned this Mar 28, 2024
@FalkWolsky FalkWolsky added the bug Something isn't working label Mar 28, 2024
@FalkWolsky FalkWolsky moved this to 🆕 New in Lowcoder Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: 🆕 New
Development

No branches or pull requests

2 participants