Static GitHub Issues

[1848] Error: This dependency was not found using the ~ shortcut in the express nuxt template

prev: Access the file system
next: Add nuxt-developer documentation

I am using the nuxt-express template and if I try to import a file with the ~ in the express server api files I get the error

This dependency was not found

So webpack (in this case backpack) is parsing the api files but for some reason will not replace the '~' the same way it would do for vue files

How can I tell webpack/backpack to replace the ~ with the sourcepath ?

<!--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/c1660">#c1660</a>)</em></sub></div>