草庐IT

Function_Score

全部标签

javascript - GraphQL Args 错误 : argument type must be Input Type but got: function GraphQLObjectType(config) {

在服务器启动时(nodeindex.js)我的GraphQLNodeJS服务器出现以下错误:Error:Query.payment(data:)argumenttypemustbeInputTypebutgot:functionGraphQLObjectType(config){_classCallCheck(this,GraphQLObjectType);当我从字符串更改原始参数时发生此错误args:{data:{type:graphQL.GraphQLString}},到一个对象类型:args:{data:{type:graphQL.GraphQLObjectType}},我需要一

javascript - GraphQL Args 错误 : argument type must be Input Type but got: function GraphQLObjectType(config) {

在服务器启动时(nodeindex.js)我的GraphQLNodeJS服务器出现以下错误:Error:Query.payment(data:)argumenttypemustbeInputTypebutgot:functionGraphQLObjectType(config){_classCallCheck(this,GraphQLObjectType);当我从字符串更改原始参数时发生此错误args:{data:{type:graphQL.GraphQLString}},到一个对象类型:args:{data:{type:graphQL.GraphQLObjectType}},我需要一

javascript - 为什么我需要在 node.js 中写 "function(value) {return my_function(value);}"作为回调?

对JS完全陌生,所以如果这是令人难以置信的明显,请原谅。假设我想使用映射字符串的函数f过滤字符串列表->bool。这有效:filteredList=list.filter(function(x){returnf(x);})这失败了:filteredList=list.filter(f)为什么???代码示例:~/projects/node(master)$node>varitems=["node.js","file.txt"]undefined>varregex=newRegExp('\\.js$')undefined>items.filter(regex.test)TypeError:

javascript - 为什么我需要在 node.js 中写 "function(value) {return my_function(value);}"作为回调?

对JS完全陌生,所以如果这是令人难以置信的明显,请原谅。假设我想使用映射字符串的函数f过滤字符串列表->bool。这有效:filteredList=list.filter(function(x){returnf(x);})这失败了:filteredList=list.filter(f)为什么???代码示例:~/projects/node(master)$node>varitems=["node.js","file.txt"]undefined>varregex=newRegExp('\\.js$')undefined>items.filter(regex.test)TypeError:

node.js - Firebase 函数无法部署 : SyntaxError: Unexpected token function

我正在尝试将功能部署到Firebase,但在部署过程中出现错误错误:函数未正确部署。能不能和异步函数联系起来?实际行为函数部署时出现错误,cli显示以下消息:================控制台日志================>eslint.✔functions:Finishedrunningpredeployscript.ifunctions:ensuringnecessaryAPIsareenabled...✔functions:allnecessaryAPIsareenabledifunctions:preparingfunctionsdirectoryforuploadi

node.js - Firebase 函数无法部署 : SyntaxError: Unexpected token function

我正在尝试将功能部署到Firebase,但在部署过程中出现错误错误:函数未正确部署。能不能和异步函数联系起来?实际行为函数部署时出现错误,cli显示以下消息:================控制台日志================>eslint.✔functions:Finishedrunningpredeployscript.ifunctions:ensuringnecessaryAPIsareenabled...✔functions:allnecessaryAPIsareenabledifunctions:preparingfunctionsdirectoryforuploadi

node.js - Firebase 的云函数错误 : "400, Change of function trigger type or event provider is not allowed"

当我运行firebasedeploy时,我收到以下错误消息:functions:HTTPError:400,Changeoffunctiontriggertypeoreventproviderisnotallowed 最佳答案 TL;DRfirebasefunctions:deleteyourFunction//thiscanbedoneviatheFirebaseConsoleaswellfirebasedeploy说明基本上,CloudFunctions期望每个函数始终使用相同的触发器,即一旦创建它就必须坚持其原始触发器,因为每

node.js - Firebase 的云函数错误 : "400, Change of function trigger type or event provider is not allowed"

当我运行firebasedeploy时,我收到以下错误消息:functions:HTTPError:400,Changeoffunctiontriggertypeoreventproviderisnotallowed 最佳答案 TL;DRfirebasefunctions:deleteyourFunction//thiscanbedoneviatheFirebaseConsoleaswellfirebasedeploy说明基本上,CloudFunctions期望每个函数始终使用相同的触发器,即一旦创建它就必须坚持其原始触发器,因为每

node.js - 如何解决 "TypeError: process.getuid is not a function"

我正在使用laravel运行react.js,并使用yarnrunwatch观察变化,这一直运行良好,直到我在使用yarn或npm后开始使用webpack时开始遇到此错误Windows10更新(我真的不知道这是否是一个原因)-我希望得到任何帮助。if(!e&&fileOwnerId===process.getuid())utimesSync(openCollectivePath,now,now)错误:TypeError:process.getuidisnotafunctionatC:\project_path\node_modules\webpack-cli\bin\cli.js:35

node.js - 如何解决 "TypeError: process.getuid is not a function"

我正在使用laravel运行react.js,并使用yarnrunwatch观察变化,这一直运行良好,直到我在使用yarn或npm后开始使用webpack时开始遇到此错误Windows10更新(我真的不知道这是否是一个原因)-我希望得到任何帮助。if(!e&&fileOwnerId===process.getuid())utimesSync(openCollectivePath,now,now)错误:TypeError:process.getuidisnotafunctionatC:\project_path\node_modules\webpack-cli\bin\cli.js:35