React-starter-kit: Graphiql wont render

Created on 16 Nov 2019  路  6Comments  路  Source: kriasoft/react-starter-kit

I clone the repo, installed everything and tried to see localhost:3000/graphql, it wont render anything.
Instead shows, some javascript like

<锝淽|"+re.src_ZPCc+"))("+slist+")","i"),self.re.schema_search=RegExp("(^|(?!_)(?:[><锝淽|"+re.src_ZPCc+"))("+slist+")","ig"),self.re.pretest=RegExp("("+self.re.schema_test.source+")|("+self.re.host_fuzzy_test.source+")|@","i"),function(self){self.__index__=-1,self.__text_cache__=""}(self)}function Match(self,shift){var start=self.__index__,end=self.__last_index__,text=self.__text_cache__.slice(start,end);this.schema=....

and console shows this error
Uncaught SyntaxError: Unexpected token '<'
graphql:1997 Uncaught ReferenceError: GraphiQL is not defined at graphql:1997
`

Most helpful comment

Hey, sorry. I'm so busy now, but if you introduce additional tests, it will be great!

All 6 comments

node -v : v10.9.0
yarn -v : 1.19.1

Thank you @akhileshacc, I reproduced that. The recent "bumps" might affect it. I'll dig into it.

  • I took a look but I couldn't spot the root problem
  • [email protected] returns somehow the broken HTML
  • 0.8.9 works fine. I'll downgrade it as a quick fix so far
  • We need simple E2E tests to avoid another regression like this

@langpavel @frenzzy I'd like to know your opinions if I say I'll set up simple puppetteer tests to make sure yarn start:

  • shows the top page
  • enables Hot Module Replacement
  • launches GraphiQL

. These are the relatively sensitive points to be affected easily in RSK, I think.

You would say it's too much for RSK, however. I'll be glad if you leave a quick comment. I'll wait for a couple of days.

Hey, sorry. I'm so busy now, but if you introduce additional tests, it will be great!

Thank you for the quick response. Let me finish it now.

Was this page helpful?
0 / 5 - 0 ratings