d***@163.com
d***@163.com
  • 发布:2022-11-14 00:24
  • 更新:2022-11-14 12:08
  • 阅读:519

nvue页面引入js文件,js文件调用其他js文件方法报错,导致白屏

分类:nvue
nvue文件中  

    import apiplaceOrder from '@/api/placeOrder.js'  

js文件中:  

import {  
    request  
} from './index.js'  

报错:  
00:18:12.459 reportJSException >>>> exception function:createInstanceContext, exception:white screen cause create instanceContext failed,check js stack ->Uncaught TypeError: (0 , _vue.reactive) is not a function  
 at resetStoreState (/pages/newPlaceOrder/newGoods/index.nvue:4960:36)  
 at Store (/pages/newPlaceOrder/newGoods/index.nvue:5752:3)  
 at eval (<anonymous>:13:1)  
 at  (/pages/newPlaceOrder/newGoods/index.nvue:27791:1)  
 at __webpack_require__ (/pages/newPlaceOrder/newGoods/index.nvue:21:30)  
 at eval (<anonymous>:2:37)  
 at  (/pages/newPlaceOrder/newGoods/index.nvue:27747:1)  
 at __webpack_require__ (/pages/newPlaceOrder/newGoods/index.nvue:21:30)  
 at eval (<anonymous>:15:42)  
 at  (/pages/newPlaceOrder/newGoods/index.nvue:8557:1)
2022-11-14 00:24 负责人:无 分享
已邀请:
d***@163.com

d***@163.com (作者)

已解决:因为vuex版本问题,默认是最高版本,降版本后,装3.6.4即可解决

要回复问题请先登录注册