Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cheapsteak/repro-webpack-graphql-tools
repo to reproduce error when building graphql-tools with webpack 4
https://github.com/cheapsteak/repro-webpack-graphql-tools
Last synced: 21 days ago
JSON representation
repo to reproduce error when building graphql-tools with webpack 4
- Host: GitHub
- URL: https://github.com/cheapsteak/repro-webpack-graphql-tools
- Owner: cheapsteak
- Created: 2018-04-27T16:04:14.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-04-27T16:07:43.000Z (over 6 years ago)
- Last Synced: 2024-11-01T08:26:06.008Z (2 months ago)
- Language: JavaScript
- Size: 205 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This repo reproduces an error when trying to use methods from graphql-tools in web bundles compiled by webpack 4
Install dependnecies (webpack and graphql-tools)
```bash
yarn
```Build the bundle
```bash
yarn build # builds the bundle
```Then open the file at page.html
You should see
```
Uncaught ReferenceError: require is not defined
at eval (instanceOf.mjs:34)
at Object../node_modules/graphql/jsutils/instanceOf.mjs (bundle.js:886)
at __webpack_require__ (bundle.js:20)
at eval (definition.mjs:46)
at Object../node_modules/graphql/type/definition.mjs (bundle.js:1210)
at __webpack_require__ (bundle.js:20)
at eval (validate.mjs:4)
at Object../node_modules/graphql/type/validate.mjs (bundle.js:1282)
at __webpack_require__ (bundle.js:20)
at eval (graphql.mjs:4)
```