Skip to content
This repository was archived by the owner on Sep 23, 2023. It is now read-only.
This repository was archived by the owner on Sep 23, 2023. It is now read-only.

TypeScript error in node_modules/@types/babel__traverse/index.d.ts(68,50): #296

@fuzzy-logic

Description

@fuzzy-logic

Describe the bug
Error after following home page tutorial & running npm start

Failed to compile.

/Users/gawain/dev/other/direflow-test/node_modules/@types/babel__traverse/index.d.ts
TypeScript error in /Users/gawain/dev/other/direflow-test/node_modules/@types/babel__traverse/index.d.ts(68,50):
']' expected.  TS1005

    66 | }
    67 | 
  > 68 | export type ArrayKeys<T> = keyof { [P in keyof T as T[P] extends any[] ? P : never]: P };
       |                                                  ^
    69 | 
    70 | export class Scope {
    71 |     constructor(path: NodePath, parentScope?: Scope);

To reproduce

npm i -g direflow-cli
direflow create
cd <project-folder>
npm install
npm start

Expected behavior
No error

Package Manager:
To install Direflow, I used... npm

Additional context
As I understand @types/babel__traverse: v7+ needs a higher version of typescript (which I have install globally)

ts-node -v 
v10.9.1
tsc -v
Version 5.0.2

But the local node_modules version of tsc is 3.9.10:

npx tsc -v
Version 3.9.10

I have tried chaning a few version of some packages but have got stuck.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions