VueJS and antdesign vue - Error: Cannot find module 'babel-plugin-import' from

1.9k Views Asked by At

I came across a problem installing vueJS with ant-design and after reboot of serve it gave below error:

Error: Cannot find module 'babel-plugin-import' from xxx

My steps were:

  1. Install vueJS project via vue ui
  2. Install dependencies for ant-design via vue ui
  3. Rerun the server
1

There are 1 best solutions below

1
On

It turns out the ant-design install does overwrite some babel-import-plugin values.

I could resolve it by install of babel-import-plugin again after I did the install of ant-design.