first of all, import is not supported before Node 9. I made it possible to use import, in Node by introducing "babel-cli" and" babel-preset-es2015", but I still had a problem when importing axios. I didn"t add a path when I import, which is similar to require:
.
import frommodule:
:
what is the reason for the failure of import in my project? Do you need to configure webpack?