You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When scaffolding a vue app with Typescript and Pinia it throws this error:
Node: 16.13.0
OS: Windows 10 Pro
Terminal: Powershell
How to reproduce:
$ npm init vue@3
√ Project name: ... my-create-vue-app
√ Add TypeScript? ... No / Yes
√ Add JSX Support? ... No / Yes
√ Add Vue Router for Single Page Application development? ... No / Yes
√ Add Pinia for state management? ... No / Yes
√ Add Cypress for testing? ... No / Yes
Scaffolding project in C:\Users\danny\Documents\code\my-create-vue-app...
Done. Now run:
cd my-create-vue-app
npm install
npm run dev
$ cd my-create-vue-app
$ npm i
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: pinia@2.0.5
npm ERR! Found: typescript@4.4.4
npm ERR! node_modules/typescript
npm ERR! dev typescript@"~4.4.4" from the root project
npm ERR! peer typescript@"*" from vue-tsc@0.29.8
npm ERR! node_modules/vue-tsc
npm ERR! dev vue-tsc@"^0.29.6" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peerOptional typescript@"^4.5.2" from pinia@2.0.5
npm ERR! node_modules/pinia
npm ERR! pinia@"^2.0.4" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: typescript@4.5.2
npm ERR! node_modules/typescript
npm ERR! peerOptional typescript@"^4.5.2" from pinia@2.0.5
npm ERR! node_modules/pinia
npm ERR! pinia@"^2.0.4" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See C:\Users\danny\AppData\Local\npm-cache\eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\danny\AppData\Local\npm-cache\_logs\2021-12-03T14_00_21_729Z-debug.log
The text was updated successfully, but these errors were encountered:
DannyFeliz
changed the title
Using Typescript and Pinia throws a npm error
Using Typescript and Pinia it throws a npm error
Dec 3, 2021
DannyFeliz
changed the title
Using Typescript and Pinia it throws a npm error
Using Typescript and Pinia throws a npm error
Dec 3, 2021
Uh oh!
There was an error while loading. Please reload this page.
When scaffolding a vue app with Typescript and Pinia it throws this error:
Node: 16.13.0
OS: Windows 10 Pro
Terminal: Powershell
How to reproduce:
√ Project name: ... my-create-vue-app
√ Add TypeScript? ... No / Yes
√ Add JSX Support? ... No / Yes
√ Add Vue Router for Single Page Application development? ... No / Yes
√ Add Pinia for state management? ... No / Yes
√ Add Cypress for testing? ... No / Yes
Scaffolding project in C:\Users\danny\Documents\code\my-create-vue-app...
Done. Now run:
cd my-create-vue-app npm install npm run dev
$ cd my-create-vue-app $ npm i
The text was updated successfully, but these errors were encountered: