apollo
apollo copied to clipboard
docs: consider updating to gatsby 3
Gatsby 2 has exited its maintenance window and is only receiving critical security updates - I imagine we'd want to update across each of the different netlify docsets across apollo, but it's quite possible we could do these updates piece by piece.
For quick reference, the migration guide can be found here
This would fix #1164.
When I update this repo to Gatsby v3, I get these errors (after switching to minimum Node 12):
ERROR
Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema.
- configuration.module.rules[11] should be one of these:
["..." | object { compiler?, dependency?, descriptionData?, enforce?, exclude?, generator?, include?, issuer?, issuerLayer?, layer?,
loader?, mimetype?, oneOf?, options?, parser?, realResource?, resolve?, resource?, resourceFragment?, resourceQuery?, rules?, scheme?,
sideEffects?, test?, type?, use? }, ...]
-> A rule.
Details:
- configuration.module.rules[10].issuer has an unknown property 'test'. These properties are valid: object { and?, not?, or? } -> Logic operators used in a condition matcher.
- configuration.module.rules[11].issuer has an unknown property 'test'. These properties are valid: object { and?, not?, or? } -> Logic operators used in a condition matcher.
ValidationError: Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema.
-
configuration.module.rules[11] should be one of these: ["..." | object { compiler?, dependency?, descriptionData?, enforce?, exclude?, generator?, include?, issuer?, issuerLayer?, layer?, load er?, mimetype?, oneOf?, options?, parser?, realResource?, resolve?, resource?, resourceFragment?, resourceQuery?, rules?, scheme?, sideEffec ts?, test?, type?, use? }, ...] -> A rule. Details:
- configuration.module.rules[10].issuer has an unknown property 'test'. These properties are valid: object { and?, not?, or? } -> Logic operators used in a condition matcher.
- configuration.module.rules[11].issuer has an unknown property 'test'. These properties are valid: object { and?, not?, or? } -> Logic operators used in a condition matcher.
-
validate.js:104 validate [docs]/[webpack]/[schema-utils]/dist/validate.js:104:11
-
validateSchema.js:78 validateSchema [docs]/[webpack]/lib/validateSchema.js:78:2
-
webpack.js:109 create [docs]/[webpack]/lib/webpack.js:109:24
-
webpack.js:151 webpack [docs]/[webpack]/lib/webpack.js:151:32
-
index.js:55 f [docs]/[webpack]/lib/index.js:55:16
-
build-html.ts:67 [docs]/[gatsby]/src/commands/build-html.ts:67:24
-
debuggability.js:384 Promise._execute [docs]/[bluebird]/js/release/debuggability.js:384:9
-
promise.js:518 Promise._resolveFromExecutor [docs]/[bluebird]/js/release/promise.js:518:18
-
promise.js:103 new Promise [docs]/[bluebird]/js/release/promise.js:103:10
-
build-html.ts:65 runWebpack [docs]/[gatsby]/src/commands/build-html.ts:65:3
-
build-html.ts:142 doBuildRenderer [docs]/[gatsby]/src/commands/build-html.ts:142:49
-
build-html.ts:179 buildRenderer [docs]/[gatsby]/src/commands/build-html.ts:179:10
-
start-server.ts:114 createIndexHtml [docs]/[gatsby]/src/utils/start-server.ts:114:32
-
start-server.ts:152 startServer [docs]/[gatsby]/src/utils/start-server.ts:152:5
-
start-webpack-server.ts:44 startWebpackServer [docs]/[gatsby]/src/services/start-webpack-server.ts:44:7
https://github.com/lorensr/apollo/tree/gatsby-v3