Quantcast
Channel: Active questions tagged config - Stack Overflow
Viewing all articles
Browse latest Browse all 5049

VueJS Typescript Config Path Monorepo Library

$
0
0

Does the path work like that? Is it possible to link to parent directories in Vue? I have the error, the Dep not found

tsconfig

"baseUrl": ".","paths": {"@/*": ["src/*"      ],"@ecosis/vue-session": ["../../dist/libs/vue-session/src"      ],    },"include": ["*.ts","src/**/*.ts","src/**/*.tsx","src/**/*.vue","tests/**/*.ts","tests/**/*.tsx","../../dist/**/*"  ],

main.ts

import { createApp } from 'vue'import App from './App.vue'import './registerServiceWorker'import store from './store'import { VueSession } from '@ecosis/vue-session'const app = createApp(App)app.use(store)app.use(VueSession)app.mount('#app')

Error

 ERROR  Failed to compile with 1 errors                                                                                                                                                                                             1:02:41 PMThis dependency was not found:* @ecosis/vue-session in ./src/main.tsTo install it, you can run: npm install --save @ecosis/vue-session

Later the Library will be published to npm, but for now I need to do this local


Viewing all articles
Browse latest Browse all 5049

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>