Static GitHub Issues

[1434] i can not use '~' in my vue file

prev: [css-loader] Problem with static files
next: Auto open browser when run dev

i can not use '~' in my vue file,error log like this:

in ./node_modules/babel-loader/lib?{"presets":"es2015","stage-0","plugins":"transform-runtime","babelrc":false,"cacheDirectory":true}!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./pages/index.vue Module not found: Error: Can't resolve '~components/TopNav.vue' in '/Users/huwenzhi/WebstormProjects/workspace/huwenzhi/pages'

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c1276">#c1276</a>)</em></sub></div>