Thank you! That fixed the original issue. Now I am able to seed the db, but now when I run npm run develop
, all goes well until this error:
success run static queries - 0.218 s — 1/1 5.15 queries/second
success run page queries - 9.851 s — 1523/1523 155.00 queries/second
ERROR
There was an error compiling the html.js component for the development server.
See our docs page on debugging HTML builds for help https://gatsby.dev/debug-html AlgoliaSearchError: Please provide an application ID. Usage: algoliasearch(applicationID, apiKey, opts)
48 |
49 | if (opts._allowEmptyCredentials !== true && !applicationID) {
> 50 | throw new errors.AlgoliaSearchError('Please provide an application ID. ' + usage);
| ^
51 | }
52 |
53 | if (opts._allowEmptyCredentials !== true && !apiKey) {
WebpackError: AlgoliaSearchError: Please provide an application ID. Usage: alg oliasearch(applicationID, apiKey, opts)
- AlgoliaSearchCore.js:50 AlgoliaSearchNodeJS.AlgoliaSearchCore
node_modules/algoliasearch/src/AlgoliaSearchCore.js:50:1
- AlgoliaSearch.js:11 AlgoliaSearchNodeJS.AlgoliaSearch
node_modules/algoliasearch/src/AlgoliaSearch.js:11:1
- AlgoliaSearchServer.js:17 AlgoliaSearchNodeJS.AlgoliaSearchServer
node_modules/algoliasearch/src/server/builds/AlgoliaSearchServer.js:17:1
- node.js:83 new AlgoliaSearchNodeJS
node_modules/algoliasearch/src/server/builds/node.js:83:1
- node.js:68 algoliasearch
node_modules/algoliasearch/src/server/builds/node.js:68:1
- WithInstantSearch.js:23 Module../src/components/search/WithInstantSearch.js
src/components/search/WithInstantSearch.js:23:36
- index.js:1 Module../src/components/layouts/index.js
src/components/layouts/index.js:1:1
- layoutSelector.js:1 Module../utils/gatsby/layoutSelector.js
utils/gatsby/layoutSelector.js:1:1
- gatsby-ssr.js:1 Module../gatsby-ssr.js
gatsby-ssr.js:1:1
- index.js:71 emit
node_modules/@babel/code-frame/lib/index.js:71:1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @freecodecamp/client@1.0.0 develop: `node --inspect=0.0.0.0:9228 node_modules/gatsby-cli develop`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @freecodecamp/client@1.0.0 develop script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/MyUserName/.npm/_logs/2019-10-05T20_19_07_068Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @freecodecamp/freecodecamp@0.0.1 develop:client: `cd ./client && npm run develop`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @freecodecamp/freecodecamp@0.0.1 develop:client script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/MyUserName/.npm/_logs/2019-10-05T20_19_07_144Z-debug.log
ERROR: "develop:client" exited with 1.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @freecodecamp/freecodecamp@0.0.1 develop: `npm-run-all ensure-env -p develop:*`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @freecodecamp/freecodecamp@0.0.1 develop script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/MyUserName/.npm/_logs/2019-10-05T20_19_07_292Z-debug.log