vue店面主页上的内部服务器错误

时间:2020-04-30 18:18:51

标签: internal-server-error vue-storefront

在初始加载期间,主页上出现内部服务器错误。 vue-storefront.log中的错误日志报告如下:

[search] Can not connect the vue-storefront-api / ElasticSearch instance! Error: {"code":500,"result":{"diagnosticText":"src/processor/default.ts(25,48): error TS2349: Cannot invoke an expression whose type lacks a call signature. Type 'string | Query | (string | Query)[] | ((searchString: string, position?: number) => number) | ((searchElement: string | Query, fromIndex?: number) => number)' has no compatible call signatures.\n","diagnosticCodes":[2349]}}
    at SearchAdapter.exports.modules../core/lib/search/adapter/api/searchAdapter.ts.SearchAdapter.handleResult (vsf-search-adapter-0.server-bundle.js:519:23)

之前似乎已经报告了类似的错误:https://github.com/DivanteLtd/vue-storefront/issues/3259 有人遇到过类似的事情并且对此有解决方案吗?


在安装vue店面时,我在vue-storefront.log中找到了此错误日志(我选择不使用demo.vuestorefront.io作为后端):

ERROR in ./src/themes/default/index.js
Module build failed (from ./node_modules/babel-loader/lib/index.js):
Error: Cannot find module '@babel/compat-data/corejs3-shipped-proposals'
  • 操作系统:Mac OS Mojave 10.14.6
  • 节点:v 14.1.0
  • 纱线:v 1.22.4

我删除了yarn.lock文件以及node_modules目录,重复了该过程,安装成功。我只是想提一下,以防万一。

0 个答案:

没有答案