Skip to content
This repository has been 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

Open
fuzzy-logic opened this issue Mar 19, 2023 · 0 comments
Labels
Bug Something isn't working

Comments

@fuzzy-logic
Copy link

fuzzy-logic commented Mar 19, 2023

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.

@fuzzy-logic fuzzy-logic added the Bug Something isn't working label Mar 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant