Analyze the problems encountered when importing axios and vue in vite
P粉545910687
P粉545910687 2023-08-15 15:44:23
0
1
493

I am using Vue.js and Vite to create a project and encountered a problem when running.

[plugin:vite:import-analysis] 无法解析从“srccomponentsStudent.vue”中的导入“axios”。文件是否存在?

What I have tried is shown below. I have installed npm i axios, but why do I get this error and also importedimport axios from 'axios';

P粉545910687
P粉545910687

reply all (1)
P粉578680675

You forgot to install axios. Try executingnpm install axios --save

    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!