Home > Article > Web Front-end > What to do if vue.runtime.esm error occurs
The [vue.runtime.esm] error occurs because the imported file does not export [module.exports]. The solution to the [vue.runtime.esm] error is to add relevant configurations to webpack. .
The operating environment of this tutorial: Windows 7 system, Vue version 2.9.6. This method is suitable for all brands of computers.
【Recommended related articles: vue.js】
Vue reports an error after importing the file vue.runtime.esm.js?2b0e:619 [Vue warn ]: Error in render: "TypeError: Object(...) is not
The problem:
The imported file is not exportedmodule.exports
It can be solved by adding the following configuration in webpack:
module.export{ … resolve:{ alias:{ ‘vue$’:‘vue/dist/vue.js’ } } }
Related free learning recommendations: javascript learning Tutorial
The above is the detailed content of What to do if vue.runtime.esm error occurs. For more information, please follow other related articles on the PHP Chinese website!