Module build failed: Error: Plugin/Preset files are not allowed to export objects, only functions的解決

一、問題出現:在進行 nuxt 創建項目的過程中,出現了這樣的異常, Module build failed: Error: Plugin/Preset files are not allowed to export objects, only functions,如下圖所示: 二、問題分析及解決:這個異常說明了 babel的版本衝突,babel依賴包不兼容, 在 package.json 依賴包
相關文章
相關標籤/搜索