Static GitHub Issues

[3250] How to set rootDir as ~

prev: how to use keep-alive ?
next: Add preload tags dynamically.

I just install nuxt starter template. it's working fine. I saw somewhere that file is being imported like import store from ~store

i don't know why ~ need to you. is it resolving root directory? if yes then how and where i can set this setting in my template? i tried the same but i am getting error on console.

<pre> ERROR Failed to compile with 1 errors This dependency was not found: `* ~store in ./plugins/i18n.js` To install it, you can run: npm install --save ~store </pre>