graphql-kit / graphql-voyager

🛰️ Represent any GraphQL API as an interactive graph

Home Page:https://graphql-kit.com/graphql-voyager/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Webpack example not working

prakhathi-m opened this issue · comments

I have tried the webpack-example that mentioned here

But it doesn't work anymore. Found this error:

Screen Shot 2023-02-12 at 7 37 14 PM

I have installed webpack-cli to fix this issue. However, the graph is not rendering.

I have tried to recreate this here with the minimal webpack setup. I have tried to install it in a create-react-app setup as well. But nothing seems to render voyager.worker.js

Getting this error on the console.
Uncaught SyntaxError: Unexpected token '<'

However, I have tried to use graphql-voyager from cdn in just vanilla JS, HTML and it worked fine - check it out here!

Anyone here successfully integrated this package into their project?