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
试过npm uninstall typescript
然后npm i typescript@3.1.1 -g还是不行
What is expected?
成功安装
What is actually happening?
WARNING: You are currently running a version of TypeScript which is not officially supported by typescript-estree.
You may find that it works just fine, or you may not.
SUPPORTED TYPESCRIPT VERSIONS: ~3.1.1
YOUR TYPESCRIPT VERSION: 3.2.2
Please only submit bug reports when using the officially supported version.
=============
error: 'chai' should be listed in the project's dependencies, not devDependencies (import/NO-extraneous-dependencies) at vue-typescript\tests\unit\example.spec.ts:1:1: > 1 | import { expect } from 'chai';
| ^
2 | import { shallowMount } from '@vue/test-utils';
3 | import HelloWorld from '@/components/HelloWorld.vue';
4 |
error: '@vue/test-utils' should be listed in the project's dependencies, not devDependencies (import/NO-extraneous-dependencies) at vue-typescript\tests\unit\example.spec.ts:2:1:
1 | import { expect } from 'chai';
2 errors found.
Error: Process exited with code 1
at exports.exit (C:\vue\vue-typescript\node_modules@vue\cli-shared-utils\lib\exit.js:7:11)
at lint (C:\vue\vue-typescript\node_modules@vue\cli-plugin-eslint\lint.js:88:5)
at api.onCreateComplete (C:\vue\vue-typescript\node_modules@vue\cli-plugin-eslint\generator\index.js:106:25)
at Creator.create (C:\Users\211\AppData\Roaming\npm\node_modules@vue\cli\lib\Creator.js:182:13)
at process._tickCallback (internal/process/next_tick.js:68:7)
The text was updated successfully, but these errors were encountered:
Version
3.2.1
Reproduction link
无
Environment info
Steps to reproduce
使用vue-cli创建项目·选择使用typescript和单元测试Mocha chai出现安装出错问题
试过npm uninstall typescript
然后npm i typescript@3.1.1 -g还是不行
What is expected?
成功安装
What is actually happening?
WARNING: You are currently running a version of TypeScript which is not officially supported by typescript-estree.
You may find that it works just fine, or you may not.
SUPPORTED TYPESCRIPT VERSIONS: ~3.1.1
YOUR TYPESCRIPT VERSION: 3.2.2
Please only submit bug reports when using the officially supported version.
=============
error: 'chai' should be listed in the project's dependencies, not devDependencies (import/NO-extraneous-dependencies) at vue-typescript\tests\unit\example.spec.ts:1:1: > 1 | import { expect } from 'chai';
| ^
2 | import { shallowMount } from '@vue/test-utils';
3 | import HelloWorld from '@/components/HelloWorld.vue';
4 |
error: '@vue/test-utils' should be listed in the project's dependencies, not devDependencies (import/NO-extraneous-dependencies) at vue-typescript\tests\unit\example.spec.ts:2:1:
1 | import { expect } from 'chai';
2 errors found.
Error: Process exited with code 1
at exports.exit (C:\vue\vue-typescript\node_modules@vue\cli-shared-utils\lib\exit.js:7:11)
at lint (C:\vue\vue-typescript\node_modules@vue\cli-plugin-eslint\lint.js:88:5)
at api.onCreateComplete (C:\vue\vue-typescript\node_modules@vue\cli-plugin-eslint\generator\index.js:106:25)
at Creator.create (C:\Users\211\AppData\Roaming\npm\node_modules@vue\cli\lib\Creator.js:182:13)
at process._tickCallback (internal/process/next_tick.js:68:7)
The text was updated successfully, but these errors were encountered: