添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

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

Before you start - checklist

  • I followed instructions in documentation written for my React-Calendar version
  • I have checked if this bug is not already reported
  • Description

    Getting a build error from the dependency package @wojtekmaj/date-utils

    Looks like version 1.1.3 has a dependency issue.

    Failed to compile.
    ./node_modules/@types/babel__traverse/index.d.ts:68:50
    Type error: ']' expected.
      66 | }
    > 68 | export type ArrayKeys<T> = keyof { [P in keyof T as T[P] extends any[] ? P : never]: P };
         |                                                  ^
      70 | export class Scope {
      71 |     constructor(path: NodePath, parentScope?: Scope);
    

    See images

    Steps to reproduce

    Remove node-modules
    Run npm i
    Then compile w/ typescript.

    Expected behavior

    Typescript should compile

    Actual behavior

    Typescript does not compile

    Additional information

    No response

    Environment

  • Browser (if applicable):
  • React-Calendar version: 3.9.0
  • React version: 16.14.0
  • This actually seems to be an issue with this package actually ~ DefinitelyTyped/DefinitelyTyped#63431

    Going to close this issue out.