Home > front end >  [for] Vue scaffolding to create projects, import Vue from 'Vue' error
[for] Vue scaffolding to create projects, import Vue from 'Vue' error

Time:09-19

Use vue - cli scaffolding to create projects, in the main, js wrote the import vue from 'vue' error, the prompt "export" default "(imported as' vue) was not found in the 'vue'

CodePudding user response:

Put your bag deleted to NPM I try,

CodePudding user response:

May be lost package

CodePudding user response:

You are creating a vue3. X project? 3. No global Vue x project

If it is 3 x version may have a look this link create Vue3. X project, Vue3. 2 x project and project x difference and Vue3. X project of new point

CodePudding user response:

Need to use vue/cli, I couldn't find what was what, reinstall again, don't wrong ~ version number

CodePudding user response:

The original poster is solved, please? I use scaffolding to create a Vue3. X project, writing the router is the introduction of vue and vue error - the router, there is no export defalut, then how to introduce
  • Related