howljs / react-native-calendar-kit

React Native Calendar Kit is a powerful and flexible calendar component for React Native applications. It provides a customizable and feature-rich calendar view with support for various functionalities
https://howljs.github.io/react-native-calendar-kit/docs/intro/
MIT License
429 stars 73 forks source link

Error: While trying to resolve module #124

Closed JiuMengDz closed 2 weeks ago

JiuMengDz commented 2 weeks ago

你好 在安装完毕后运行时遇到了这个问题

error: Error: While trying to resolve module @howljs/calendar-kit from file G:\Custom_Proj\ReactNative\react-native_projs\App.tsx, the package G:\Custom_Proj\ReactNative\react-native_projs\node_modules\@howljs\calendar-kit\package.json was successfully found. However, this package itself specifies a main module field that could not be resolved (G:\Custom_Proj\ReactNative\react-native_projs\node_modules\@howljs\calendar-kit\src\index. Indeed, none of these files exist:

请问有什么解决思路吗?安装的版本是 2.0.5

JiuMengDz commented 2 weeks ago

使用的是示例代码

import { CalendarBody, CalendarContainer, CalendarHeader } from '@howljs/calendar-kit';
import React from 'react';

export default function APP()
{
  return (
    <CalendarContainer>
      <CalendarHeader />
      <CalendarBody />
    </CalendarContainer>
  );
}
JiuMengDz commented 2 weeks ago

没事了 reanimated的需要特殊配置一下才能用 https://docs.swmansion.com/react-native-reanimated/docs/guides/troubleshooting/#failed-to-create-a-worklet