Comments (7)
I'm a bit confused. Could you share the exact steps you followed to get this error? Babel and Browserify are included in the package dependencies, so installing the main project should work.
from graphiql.
I think this is the issue:
https://github.com/graphql/graphiql/blob/master/example/build.sh#L4
Shouldn't it be something like
./node_modules/.bin/babel server.js --optional runtime -o dist/server.js
?
from graphiql.
yeah, exactly that, thanks @gaearon
@leebyron yeah they are being installed but the when the examples try to install the dependencies, they install the local graphiql which has:
"prepublish": "npm run build"
which is run before the npm install
is done and it runs the ./resource/build.sh
which uses global babel
from graphiql.
Have you run "npm install" in the main project directory first?
The build script is not meant to be run directly, but only via npm scripts, which puts node_modules/.bin into $PATH
from graphiql.
I just tried running npm install
in root and then in example
folder and I don't have any problems.
from graphiql.
I'll add that step to the readme in examples
from graphiql.
cool, now works 👍
from graphiql.
Related Issues (20)
- [graphiql] defaultQuery with empty string does not result in empty default query
- [vscode-graphql] 🐞 Language Server crashes when presented with Svelte files containing any JS/TS code HOT 1
- [lsp-server] 🐞 Cannot find module 'typescript' since v3.3.29 HOT 5
- Is `@graphiql/toolkit` ESM or not?
- [graphiql] - Upgrading to 3.1.0 causes runtime error HOT 1
- [graphiql] file upload support HOT 2
- Multiple references to missing PATENTS file
- [vscode-graphql-syntax] (v1.2.3) triple double-quote comment syntax broken for TypeScript HOT 4
- [lsp-server] 🐞 Error: Cannot find module 'astrojs-compiler-sync' HOT 28
- [vscode-graphql-syntax] Ruby `GRAPHQL` heredoc breaks syntax higlighting in the file HOT 1
- [graphiql] `codemirror-graphql` depends on `@types/codemirror@^0.0.90` but uses `codemirror@^5.65.3` HOT 1
- [vscode-graphql-syntax] Syntax Highlight breaks if you add a comment/description to a type HOT 1
- [graphiql] Add an option to add new tab with query
- when using onEditQuery, the explorer scroll resets to the beginning HOT 1
- [graphiql] <title>
- [graphiql] Support deprecated argument on query arguments HOT 3
- [lsp-server] 🐞 vscode code completion does not work HOT 1
- [graphiql] <title>
- Refactor LSP to enable remote schema invalidation
- [lsp-server] 🐞 regression: syntax highlighting messed up HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from graphiql.