Silind-Software / direflow

🧩 Use the best of two worlds. Create fast, performant, native Web Components using React.
https://direflow.io
MIT License
502 stars 77 forks source link

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

Open fuzzy-logic opened 1 year ago

fuzzy-logic commented 1 year ago

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.