Open bali182 opened 7 years ago
hmmm.. I'm not quite sure what is wrong in your setup. I tried it with my webpack and it works quite well (in fact http://toolbox.sangria-graphql.org/graphiql already uses graphiql-workspace).
Based on the prop names, I guess something is wrong with react-bootstrap. I would appreciate if you maybe could look at differences in your project and the graphql-toolbox. There should be something... maybe different version or react, react-bootstrap or some other lib?
Sure, will do!
I faced the same issue after updating deps in graphiql-workspace-app (haven't pushed the result yet). The component loads, but the browser console is full of warnings. What did you end up with @bali182?
@kachkaev I would suggest you to check new v1.0.1. We updated some of the dependencies:
https://github.com/OlegIlyenko/graphiql-workspace/releases/tag/v1.0.1
Maybe this will help
That's what I did. Basically I updated all the deps in that project by running ncu -u
, then did npm install; npm start
and saw all those React warnings.
@OlegIlyenko how does your browser console look after updating all deps? Do you see any warnings?
no, I don't I saw any warnings after the update. Maybe graphiql-workspace-app uses some outdated peer dependencies?
I'll try again and will let know how it goes. Didn't spend much time on figuring out what could be wrong this weekend. Good to see that not everyone experiences this!
Hi Oleg,
I tried updating the packages once again, but still saw a lot of warnings. Here's the latest package.json (develop
branch of graphiql-workspace-app
):
https://gitlab.com/kachkaev/graphiql-workspace-app/blob/develop/package.json
Chrome's console is pretty full unfortunately:
hmm... there is definitely something strange going on with dependencies and their versions. Just today I released a new version and double checked that there are no warnings or errors in the console. I would suggest you to take this self-contained minimal example of graphiql-workspace and compare it to graphiql-workspace-app. There should be some differences that cause these errors:
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>GraphiQL Workspace Example</title>
<link rel="stylesheet" media="screen" href="//maxcdn.bootstrapcdn.com/bootstrap/latest/css/bootstrap.min.css">
<link rel="stylesheet" media="screen" href="//cdnjs.cloudflare.com/ajax/libs/graphiql/0.9.3/graphiql.min.css">
<link rel="stylesheet" media="screen" href="//unpkg.com/graphiql-workspace@1.0.3/graphiql-workspace.css">
<script src="//cdn.jsdelivr.net/react/15.4.2/react.min.js"></script>
<script src="//cdn.jsdelivr.net/react/15.4.2/react-dom.min.js"></script>
<script src="//unpkg.com/graphiql-workspace@1.0.3/graphiql-workspace.js"></script>
</head>
<body>
<div id="workspace" class="graphiql-workspace"></div>
<script>
var config = new graphiqlWorkspace.AppConfig("graphiql", {});
ReactDOM.render(
React.createElement(graphiqlWorkspace.GraphiQLWorkspace, {config: config}),
document.getElementById('workspace'));
</script>
</body>
</html>
ok now I'm super confused :upside_down_face: Just checked package.json
and turns out that most of the dependencies are very outdated...
I updated everything and published v1.0.4:
https://github.com/OlegIlyenko/graphiql-workspace/releases/tag/v1.0.4
Would be great if you could check it and let me know whether it solves the issue.
Thanks! All of that red text is gone now, I updated master in graphiql-workspace-app
. Dropzone might still need a bit of refactoring, but It's not that crucial.
I might have a look at it later if I find time, but can't promise at the moment!
Everything seems to work properly except some weird issue with propTypes. In terms of getting css to work I added
and also bootstrap as recommended in react-bootstrap docs according to #4 :
Now the only weird thing I see is in the console:
First complaints about manually calling propTypes validation (bunch of these messages):
And also unrecognized properties (also quite a lot of these):
Not sure if this is done in workspace or some library it depends on.