Just starting out with TS and Vue.
Encountering this error message while attempting to run vue-cli-service serve:
This dependency was not found:
* @store in ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/ts-loader??ref--12-1!./node_modules/vue-loader/lib??vue-loader-opt
ions!./src/components/HelloWorld.vue?vue&type=script&lang=ts&
To install it, you can run: npm install --save @store
Found in ./src/components/HelloWorld.vue :
import { RootState, storeBuilder, CustomerStore } from '@store';
In tsconfig.json :
"baseUrl": "./src",
"paths": {
"@/*": ["src/*"],
"store": ["./store/index.ts"],
Switching the import statement like below resolves the error.
import { RootState, storeBuilder, CustomerStore } from './../store';
Do I need any additional configuration or package? My setup:
- vue 3.0.1
- tsc 3.0.3