Unexpected token import?

Installed package: nuxt-stylus-resources-loader. When you write import {resolve} from 'path' in nuxt.config.js console error: Unexpected token import. How to resolve this problem? In all other cases, when import'e is no problem.
June 7th 19 at 14:42
1 answer
June 7th 19 at 14:44
Read the issue in the repository

Find more questions by tags JavaScriptHTMLNode.jsVue.jsnpm