VulcanJS / Vulcan-Starter

VulcanJS starter repo. Use as a base for your own VulcanJS projects.
MIT License
127 stars 88 forks source link

Example-Forum GraphQL error: Unknown type "MultiPostInput" on deployed app #86

Open adalidda opened 6 years ago

adalidda commented 6 years ago

Hi,

My Example-Forum app run well in local mode (using the latest build of VulcanJS and Vulcan-Starter). I deployed it to my server with Mup version 1.4.5. The deploy went well and I have my app running on my test server at https://nova.adalidda.com/

However, I got the following GraphQL error: Error: GraphQL error: Unknown type "MultiPostInput". Did you mean "PostsInput"? GraphQL error: Cannot query field "posts" on type "Query". at new t (762733c3583714b50ce1c07ee75b907a0df22751.js?meteor_js_resource=true:7) at n.currentResult (762733c3583714b50ce1c07ee75b907a0df22751.js?meteor_js_resource=true:7) at s.dataForChild (762733c3583714b50ce1c07ee75b907a0df22751.js?meteor_js_resource=true:7) at s.render (762733c3583714b50ce1c07ee75b907a0df22751.js?meteor_js_resource=true:7) at s (762733c3583714b50ce1c07ee75b907a0df22751.js?meteor_js_resource=true:7) at beginWork (762733c3583714b50ce1c07ee75b907a0df22751.js?meteor_js_resource=true:7) at r (762733c3583714b50ce1c07ee75b907a0df22751.js?meteor_js_resource=true:7) at i (762733c3583714b50ce1c07ee75b907a0df22751.js?meteor_js_resource=true:7) at a (762733c3583714b50ce1c07ee75b907a0df22751.js?meteor_js_resource=true:7) at T (762733c3583714b50ce1c07ee75b907a0df22751.js?meteor_js_resource=true:7)

Unhandled (in react-apollo) Error: GraphQL error: Cannot query field "locale" on type "User". at new t (https://nova.adalidda.com/762733c3583714b50ce1c07ee75b907a0df22751.js?meteor_js_resource=true:7:587400) at n.currentResult (https://nova.adalidda.com/762733c3583714b50ce1c07ee75b907a0df22751.js?meteor_js_resource=true:7:589541) at s.dataForChild (https://nova.adalidda.com/762733c3583714b50ce1c07ee75b907a0df22751.js?meteor_js_resource=true:7:552763) at s.render (https://nova.adalidda.com/762733c3583714b50ce1c07ee75b907a0df22751.js?meteor_js_resource=true:7:553603) at s (https://nova.adalidda.com/762733c3583714b50ce1c07ee75b907a0df22751.js?meteor_js_resource=true:7:965417) at beginWork (https://nova.adalidda.com/762733c3583714b50ce1c07ee75b907a0df22751.js?meteor_js_resource=true:7:967123) at r (https://nova.adalidda.com/762733c3583714b50ce1c07ee75b907a0df22751.js?meteor_js_resource=true:7:979250) at i (https://nova.adalidda.com/762733c3583714b50ce1c07ee75b907a0df22751.js?meteor_js_resource=true:7:979571) at a (https://nova.adalidda.com/762733c3583714b50ce1c07ee75b907a0df22751.js?meteor_js_resource=true:7:979807) at T (https://nova.adalidda.com/762733c3583714b50ce1c07ee75b907a0df22751.js?meteor_js_resource=true:7:983336)

What is wrong ?

Thank You Adalidda

SachaG commented 6 years ago

Is it possible that somehow your server is not properly updated? I would try to redeploy.

Apollinaire commented 6 years ago

It looks like your schema is still using the pre-1.12 way to do graphql : graphql-erd 1 See the PostsList query instead of the posts query.

adalidda commented 6 years ago

Thank You @Apollinaire . I just realize that I miss @SachaG latest blog https://medium.com/@sachagreif/vulcan-js-1-12-a-better-graphql-api-for-crud-operations-fae82e03a7e9

Adalidda