Skip to content
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

Error: Requiring unknown module "node_modules/@babel/runtime/helpers/readOnlyError.js"., js engine: hermes TypeError: Cannot read property 'LocaleConfig' of undefined #2570

Open
kingjack opened this issue Dec 5, 2024 · 2 comments

Comments

@kingjack
Copy link

kingjack commented Dec 5, 2024

Error: Requiring unknown module "node_modules/@babel/runtime/helpers/readOnlyError.js"., js engine: hermes
TypeError: Cannot read property 'LocaleConfig' of undefined

This error is located at:
in Unknown
in RCTView
in Unknown
in RCTView
in Unknown
in RCTView
in Unknown
in Unknown
in y
in RCTView
in Unknown
in E
in Connect(E)
in Unknown
in Unknown
in Unknown
in RCTView
in Unknown
in Unknown
in u
in RCTView
in Unknown
in RNSScreen
in Unknown
in t
in Suspense
in Unknown
in Unknown
in Unknown
in Unknown
in p
in t
in Suspense
in Unknown
in Unknown
in RNSScreenStack
in Unknown
in h
in RNCSafeAreaProvider
in Unknown
in f
in Unknown
in Unknown
in n
in Unknown
in Unknown
in c
in Unknown
in Unknown
in Unknown
in Unknown
in Unknown
in Unknown
in RCTView
in Unknown
in RCTView
in Unknown
in l, js engine: hermes
Unhandled JS Exception: Cannot read property 'LocaleConfig' of undefined

React-native 0.72.10
react-native-calender 1.1303.0

I use like example

import { CalendarList, LocaleConfig } from 'react-native-calendars';

LocaleConfig.locales['zh-CN'] = {
    monthNames: [
        '一月',
        '二月',
        '三月',
        '四月',
        '五月',
        '六月',
        '七月',
        '八月',
        '九月',
        '十月',
        '十一月',
        '十二月',
    ],
    dayNames: ['日', '一', '二', '三', '四', '五', '六'],
    dayNamesShort: ['日', '一', '二', '三', '四', '五', '六'],
};
LocaleConfig.defaultLocale = 'zh-CN';
@kingjack
Copy link
Author

anybody meet that issue?? help me sos!!!!😂

1 similar comment
@kingjack
Copy link
Author

anybody meet that issue?? help me sos!!!!😂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant