nuxt-community/express-template

cannot resolve components

marswong opened this issue · 0 comments

using the template, and the pages/admin.vue looks like:

...
import ArHeader from '~/components/ar-header.vue';
...

and the components/ar-header.vue looks like:

...
import logger from '~/mixins/logger';
...

and the mixins/logger.js looks like:

...
export default {
  // ...
};
...

while building files, the path ~/components and ~/mixins just cannot be resolved.

This question is available on Nuxt.js community (#c86)