Open crgardner opened 9 months ago
You can use npm overrides or yarn resolutions to enforce an older version of @types/babel__traverse
instead of latest.
Using yarn, you add this to your package.json
:
{
"resolutions": {
"@types/babel__traverse": "7.0.6"
}
}
Run yarn
to install the dependencies, and yarn start
should work now.
Just to rewrite the previous (excellent) answer more explicitly,
You may want to add both of the following within package.json to give more flexibility (resolutions works with yarn, overrides works with npm, feel free to delete as it suits you)
{
"resolutions": {
"@types/babel__traverse": "7.0.6"
},
"overrides": {
"@types/babel__traverse": "7.0.6"
}
}
If using yarn, run yarn
then yarn start
If using npm, run npm i
then npm run start
Receiving the above error message after running npm start. Specifically, doesn't like ./node_modules/@types/babel__traverse/index.d.ts:
// this is good enough for non-visitor traverse options e.g.
noScope
| [k:
${string}\|${string}
]: VisitNode<S, Node>; | };Environment
Reproduce