netlify

How do you publish a gatsby project with gatsby-image on Netlify?

瘦欲@ 提交于 2021-01-02 03:47:24
问题 So I can locally build my gatsby project no problem, but when Netlify tries to build, I get the error Field "featuredImage" must not have a selection since type "String" has no subfields. 5:34:38 PM: This can happen if you e.g. accidentally added { } to the field "featuredImage". If you didn't expect "featuredImage" to be of type "String" make sure that your input source and/or plugin is correct. 5:34:38 PM: error There was an error in your GraphQL query: 5:34:38 PM: Field "featuredImage"

ImportModuleError“,”errorMessage“:”Error: Cannot find module while using Netlify lambda functions with dependencies

让人想犯罪 __ 提交于 2020-12-23 11:11:59
问题 I'm trying to use netlify and its lambda function feature to run a node function with dependencies. Based on https://css-tricks.com/using-netlify-forms-and-netlify-functions-to-build-an-email-sign-up-widget/ , I have in my functions/submission-created.js: const fetch = require('node-fetch'); exports.handler = async event => { const email = JSON.parse(event.body).payload.EMAIL const asking = JSON.parse(event.body).payload.ASKING console.log(`Recieved a submission: ${email}`) .... When I look

ImportModuleError“,”errorMessage“:”Error: Cannot find module while using Netlify lambda functions with dependencies

我是研究僧i 提交于 2020-12-23 11:10:49
问题 I'm trying to use netlify and its lambda function feature to run a node function with dependencies. Based on https://css-tricks.com/using-netlify-forms-and-netlify-functions-to-build-an-email-sign-up-widget/ , I have in my functions/submission-created.js: const fetch = require('node-fetch'); exports.handler = async event => { const email = JSON.parse(event.body).payload.EMAIL const asking = JSON.parse(event.body).payload.ASKING console.log(`Recieved a submission: ${email}`) .... When I look

ImportModuleError“,”errorMessage“:”Error: Cannot find module while using Netlify lambda functions with dependencies

谁都会走 提交于 2020-12-23 11:10:22
问题 I'm trying to use netlify and its lambda function feature to run a node function with dependencies. Based on https://css-tricks.com/using-netlify-forms-and-netlify-functions-to-build-an-email-sign-up-widget/ , I have in my functions/submission-created.js: const fetch = require('node-fetch'); exports.handler = async event => { const email = JSON.parse(event.body).payload.EMAIL const asking = JSON.parse(event.body).payload.ASKING console.log(`Recieved a submission: ${email}`) .... When I look