[Solved] Vue 3: Module '"../../node_modules/vue/dist/vue"' has no exported member

Article Tarif Hossain

Problem:

After updating npm packages, some of the imports from the 'vue' module started showing errors:

TS2305: Module '"../../node_modules/vue/dist/vue"' has no exported member 'X'


Solution:

You need to update TypeScript from version "3.x.x" to "4.3.5".  Some vue-related dependencies became incompatible with the 3.x version of TypeScript after the update.

Thank you for reading the article. Hope the solutions will help you to solve your issue.