Giter VIP home page Giter VIP logo

gatsby-contentful-starter's People

Contributors

axe312ger avatar bradwjs avatar cdtinney avatar dschau avatar jpalmieri avatar khaledgarbaya avatar knnyczr avatar peralysis avatar putnam14 avatar realityking avatar shy avatar sidharthachatterjee avatar skylerwshaw avatar stefanjudis avatar thecodingwhale avatar tryshchenko avatar wardpeet avatar zeusdeux avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gatsby-contentful-starter's Issues

Nodes still created for deleted posts

Hello! I've been testing out the Gatsby/Contentful starter and noticed something. If you hook up your project with a Contentful space that has deleted blog posts, they are still being fetched by GraphQL. It seems like CF doesn't delete the nodes once they are created--they just get returned with null values:

nodes

The issue this presents is in the index page (src/pages/index.js) because the code is looping through each node and creating a div for it (so a user could end up with empty white space on their blog if they have deleted entries--I was able to recreate):

            {posts.map(({ node }) => {
              return (
                <div className="article" key={node.slug}>
                  <ArticlePreview article={node} />
                </div>
              )
            })}

I was looking at this issue with another engineer and the easiest solution we could come up with is to only use nodes that have a valid title. So instead of this:

const posts = get(this, 'props.data.allContentfulBlogPost.edges')

You can filter for only posts that have a title (or any other field):

const allPosts = get(this, 'props.data.allContentfulBlogPost.edges')
const posts = allPosts.filter(post => post.node.title)

Question: Is it expected behavior to have phantom nodes even after posts are deleted? And should I create a PR to filter out these nodes if you agree with my assessment?

Thanks!

Error: Please make sure the destination space have the same default locale as the source

Hey, just checking this out with an existing Contentful instance of default locale en:

 ✖ Checking if destination space already has any content and retrieving it
   →       Default locale for destination space: en
   Apply transformations to source data
   Push content to destination space


The following 1 errors and 0 warnings occurred:

16:42:59 - Error: Please make sure the destination space have the same default locale as the source Default locale for source space : en-US Default locale for destination space: en

Stored the detailed error log file at:
/Users/paulmccrodden/dev/contentful-starter/contentful-import-error-log-aiu1iuazs7do-2018-02-25T16-42-82.json
{ ContentfulMultiError: Errors occured
    at /Users/paulmccrodden/dev/contentful-starter/node_modules/contentful-import/dist/index.js:195:26
    at <anonymous>
  name: 'ContentfulMultiError',
  errors:
   [ { ts: '2018-02-25T07:42:31.592Z',
       level: 'error',
       error: [Object] } ] }

Not sure where it is referring to, where do I have to change on code side to to allow en locale? Thanks.

Duplicated content

Hey.

I have configured the whole project, but when I run in my local "npm run dev", the index shows all the post published but duplicated, I mean I see the preview of the post duplicates, how could I fix that ?.

And when I add a new post, I can not see it in my index when I refresh the page, I can only see it when I restart the command "npm run dev".

Thanks in advance

tracedSVG error when using image-url (non local) as hero in post

 ERROR #85901  GRAPHQL

There was an error in your GraphQL query:

toFormat seems to be empty, we need a fileExtension to set it.

   1 | fragment GatsbyContentfulFluid_tracedSVG on ContentfulFluid {
>  2 |   tracedSVG
     |   ^
   3 |   aspectRatio
   4 |   src
   5 |   srcSet
   6 |   sizes
   7 | }
   8 |
   9 | query BlogPostBySlug($slug: String!) {
  10 |   site {
  11 |     siteMetadata {
  12 |       title

File path: C:/Users/Me/Documents/Programming/Websites/contentful-starter/src/templates/blog-post.js
Url path: /blog/a-new-post/
Plugin: none

not finished run page queries - 0.045s

This error comes from me going to google, right-clicking any image, choosing "copy image address" and pasting that link in a Contentful entry when submitting a URL for my hero image. This issue goes away when I replace the image with a local image that I instead upload to Contentful.

Can't resolve 'core-js/.. ' in '.../.cache'

I kept receiving the same error about a core-js file missing in the cache; submitted an issue ticket on the gatsby doc and was told the .bablerc file was causing issues and to delete it, working and deployed project is up and running.

more details here:

gatsbyjs/gatsby#29164

Color of GatsbyContentfulFluid_tracedSVG fill

Since this repo is more active and up to date, cross-posting from here: contentful/starter-gatsby-blog#98

Loving using Contentful with gatsby-image, but would be nice to be able to use a query to change the fill color from the default light gray. Gatsby-plugin-sharp has this built into their query with traceSVG: { background: "#fbfafc", color: "#dbd4e2" } - any chance of something like this that would be easily reproducable with Contentful?

`site.siteMetaData` is not being queried

The starter has the line const siteTitle = get(this, 'props.data.site.siteMetadata.title'); which ultimately resolves to undefined because the site metadata is not being queried in the graphql query.

Need to add this to make it work:

    site {
      siteMetadata {
        title
      } 
    }

Deployment issue related to package.json

I was doing some deployment using Netlify and stuck more than 4 hours. I keep scratching my head the build failed issue keep looking this file: ./bin/hello.js but I can't find it I already run cleanup-repository to remove all the setup files.

And then while checking the package.json I find this, "postinstall": "node ./bin/hello.js",.

It would be better after running the cleanup-repository it should delete the postinstall and cleanup-repository in package.json

Also how I can create PR for this? Thank you.

Error "Input file contains unsupported image format"

I am trying to get build gatsby-contentful-starter in CI. However, in about 50% of runs, I get the following error(s):

There was an error in your GraphQL query:
 

Input file contains unsupported image format

or

VipsJpeg: Not a JPEG file: starts with 0x00 0x00
 

 

 
   1 | fragment GatsbyContentfulFluid_tracedSVG on ContentfulFluid {
 
>  2 |   tracedSVG
 
     |   ^
 
   3 |   aspectRatio
 
   4 |   src
 
   5 |   srcSet
 
   6 |   sizes
 
   7 | }
 
   8 | 
 
   9 | query BlogIndexQuery {
 
  10 |   site {
 
  11 |     siteMetadata {
 
  12 |       title
 

I have updated to the latest gatsby and plugin versions.

Is anyone else experiencing this issue?

Support tag pages

The provided content model also includes tags for each article. It would be great to have tag pages and so that we can have tag links below every article.

I think it'd be cool if it could look similar to the result of the Contentful CLI guide command.

screen shot 2018-02-20 at 16 43 34

Contentful spaceId and access token need to be provided [ERROR #10123 CONFIG]

Sounds like a straight forward error, but I'm defining .env variables locally using production and development vars for CONTENTFUL_SPACE_ID, CONTENTFUL_ACCESS_TOKEN, CONTENTFUL_HOST.

Only running into this issue when trying to run gatsby build followed by gatsby serve. Any ideas as to why my API keys from Contentful can't be read when trying to serve locally? I can share my repo if needed.

npm run setup error : "unknownKey" "default"

I create a new space with the locale en-US on contentful and then when I run "npm run setup" i end up with this error:

[ { "ts": "2018-10-24T12:05:08.380Z", "level": "error", "error": { "name": "UnknownKey", "entity": { "name": "U.S. English", "code": "en-US", "fallbackCode": null, "default": true, "contentManagementApi": true, "contentDeliveryApi": true, "optional": false, "sys": { "type": "Locale", "id": "3Bb4qrZtqLzwN35dmTQ6a2", "version": 0, "space": { "sys": { "type": "Link", "linkType": "Space", "id": "28p9vvm1oxuw" } }, "createdBy": { "sys": { "type": "Link", "linkType": "User", "id": "066RqBikAjzKy0SWUEtFvH" } }, "createdAt": "2017-05-11T12:01:17Z", "updatedBy": { "sys": { "type": "Link", "linkType": "User", "id": "066RqBikAjzKy0SWUEtFvH" } }, "updatedAt": "2017-05-11T12:01:17Z" } }, "data": { "status": 400, "statusText": "Bad Request", "message": "The body you sent contains an unknown key.", "details": { "keys": [ "default" ] }, "request": { "url": "https://api.contentful.com:443/spaces/a0f3ch77buu1/environments/master/locales/1wRY6kDrgoQfN7T0YtVD7E", "headers": { "Accept": "application/json, text/plain, */*", "Content-Type": "application/vnd.contentful.management.v1+json", "X-Contentful-User-Agent": "app contentful.import/7.4.1; feature library-import; sdk contentful-management.js/5.2.1; platform node.js/v10.11.0; os macOS/17.7.0;", "Authorization": "Bearer ...6575f", "user-agent": "node.js/v10.11.0", "Accept-Encoding": "gzip", "X-Contentful-Version": 1, "Content-Length": 144 }, "method": "put", "payloadData": "{\"name\":\"U.S. English\",\"code\":\"en-US\",\"fallbackCode\":null,\"default\":true,\"contentManagementApi\":true,\"contentDeliveryApi\":true,\"optional\":false}" }, "requestId": "0cf2a413e766e5ee3eb07d53b96a9585" } } } ]

I tried to remove the field "default" but it is not working.
I think I can still go through the tutorial, but just to tell you that there is an error in the init script.

Cheers,
Charles

Error when trying to add a post

I can duplicate the starter posts and change the contents of those post and everything works fine. However, when I try and add a new post. I keep getting an error.
Screen Shot 2019-07-15 at 12 35 44 AM

Schema breaking change?

Hey guys,

Have you updated the schema for querying for blog posts?

Error after setup:

Unknown field 'allContentfulBlogPost' on type 'Query'. Source: document HomeQueryfile:GraphQL request``

SEO/Robots

Hi there,
I assumed (wrongly!) that this starter would be SEO out of the box but realised recently my site is not being crawled by Google. Can you advise if you plan adding gatsby-plugin-robots-txt and sitemap to the starter or whether I should attempt to build myself? It’s a great feature to have.
Thank you!

Error installing the packages

Hi, I'm having trouble to install gatsby-contentful-starter.

Error

Error: Command failed: npm install                                           │
│ node-pre-gyp WARN Tried to download(404):                                    │
│ https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.2.4/fse-v1.2.4-node… │
│                                                                              │
│ node-pre-gyp WARN Pre-built binaries not found for [email protected] and        │
│ [email protected] (node-v72 ABI, unknown) (falling back to source compile with    │
│ node-gyp)                                                                    │
│ In file included from ../fsevents.cc:6:                                      │
│ In file included from ../../nan/nan.h:202:                                   │
│ In file included from ../../nan/nan_converters.h:67:                         │
│ ../../nan/nan_converters_43_inl.h:22:1: warning: 'ToBoolean' is deprecated:  │
│ ToBoolean can never throw. Use Local version. [-Wdeprecated-declarations]    │
│ X(Boolean)                                                                   │
│ ^                                                                            │
│ ../../nan/nan_converters_43_inl.h:18:12: note: expanded from macro 'X'       │
│        val->To ## TYPE(isolate->GetCurrentContext())                       … │
│ \                                                                            │
│             ^                                                                │
│ <scratch space>:207:1: note: expanded from here                              │
│ ToBoolean                                                                    │
│ ^                                                                            │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8.h:2536:3: note:  │
│ 'ToBoolean' has been explicitly marked deprecated here                       │
│    V8_DEPRECATED("ToBoolean can never throw. Use Local version.",            │
│    ^                                                                         │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8config.h:311:29:  │
│ note: expanded from macro 'V8_DEPRECATED'                                    │
│    declarator __attribute__((deprecated(message)))                           │
│                              ^                                               │
│ In file included from ../fsevents.cc:6:                                      │
│ In file included from ../../nan/nan.h:202:                                   │
│ In file included from ../../nan/nan_converters.h:67:                         │
│ ../../nan/nan_converters_43_inl.h:40:1: warning: 'BooleanValue' is deprecat… │
│ BooleanValue can never throw. Use Isolate version. [-Wdeprecated-declaratio… │
│ X(bool, Boolean)                                                             │
│ ^                                                                            │
│ ../../nan/nan_converters_43_inl.h:37:15: note: expanded from macro 'X'       │
│    return val->NAME ## Value(isolate->GetCurrentContext());                … │
│ \                                                                            │
│                ^                                                             │
│ <scratch space>:214:1: note: expanded from here                              │
│ BooleanValue                                                                 │
│ ^                                                                            │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8.h:2574:3: note:  │
│ 'BooleanValue' has been explicitly marked deprecated here                    │
│    V8_DEPRECATED("BooleanValue can never throw. Use Isolate version.",       │
│    ^                                                                         │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8config.h:311:29:  │
│ note: expanded from macro 'V8_DEPRECATED'                                    │
│    declarator __attribute__((deprecated(message)))                           │
│                              ^                                               │
│ In file included from ../fsevents.cc:6:                                      │
│ In file included from ../../nan/nan.h:203:                                   │
│ In file included from ../../nan/nan_new.h:189:                               │
│ ../../nan/nan_implementation_12_inl.h:103:42: error: no viable conversion f… │
│ 'v8::Isolate *' to 'Local<v8::Context>'                                      │
│    return scope.Escape(v8::Function::New( isolate                            │
│                                           ^~~~~~~                            │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8.h:183:7: note:   │
│ candidate constructor (the implicit copy constructor) not viable: no known   │
│ conversion from 'v8::Isolate *' to 'const v8::Local<v8::Context> &' for 1st  │
│ argument                                                                     │
│ class Local {                                                                │
│        ^                                                                     │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8.h:183:7: note:   │
│ candidate constructor (the implicit move constructor) not viable: no known   │
│ conversion from 'v8::Isolate *' to 'v8::Local<v8::Context> &&' for 1st       │
│ argument                                                                     │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8.h:187:13: note:  │
│ candidate template ignored: could not match 'Local<type-parameter-0-0>'      │
│ against 'v8::Isolate *'                                                      │
│    V8_INLINE Local(Local<S> that)                                            │
│              ^                                                               │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8.h:4139:22: note… │
│ passing argument to parameter 'context' here                                 │
│        Local<Context> context, FunctionCallback callback,                    │
│                       ^                                                      │
│ In file included from ../fsevents.cc:6:                                      │
│ In file included from ../../nan/nan.h:203:                                   │
│ In file included from ../../nan/nan_new.h:189:                               │
│ ../../nan/nan_implementation_12_inl.h:337:37: error: too few arguments to    │
│ function call, expected 2, have 1                                            │
│    return v8::StringObject::New(value).As<v8::StringObject>();               │
│           ~~~~~~~~~~~~~~~~~~~~~      ^                                       │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8.h:5394:3: note:  │
│ 'New' declared here                                                          │
│    static Local<Value> New(Isolate* isolate, Local<String> value);           │
│    ^                                                                         │
│ In file included from ../fsevents.cc:6:                                      │
│ In file included from ../../nan/nan.h:203:                                   │
│ In file included from ../../nan/nan_new.h:189:                               │
│ ../../nan/nan_implementation_12_inl.h:337:58: error: expected '(' for        │
│ function-style cast or type construction                                     │
│    return v8::StringObject::New(value).As<v8::StringObject>();               │
│                                           ~~~~~~~~~~~~~~~~^                  │
│ ../../nan/nan_implementation_12_inl.h:337:60: error: expected expression     │
│    return v8::StringObject::New(value).As<v8::StringObject>();               │
│                                                             ^                │
│ In file included from ../fsevents.cc:6:                                      │
│ ../../nan/nan.h:1034:44: error: no matching member function for call to      │
│ 'ToString'                                                                   │
│        v8::Local<v8::String> string = from->ToString();                      │
│                                       ~~~~~~^~~~~~~~                         │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8.h:2541:44: note… │
│ candidate function not viable: requires single argument 'context', but no    │
│ arguments were provided                                                      │
│    V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(                        │
│                                             ^                                │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8.h:2557:31: note… │
│ candidate function not viable: requires single argument 'isolate', but no    │
│ arguments were provided                                                      │
│                  Local<String> ToString(Isolate* isolate) const);            │
│                                ^                                             │
│ In file included from ../fsevents.cc:6:                                      │
│ ../../nan/nan.h:1044:37: error: cannot initialize a parameter of type        │
│ 'v8::Isolate *' with an lvalue of type 'char *'                              │
│          length_ = string->WriteUtf8(str_, static_cast<int>(len), 0, flags); │
│                                      ^~~~                                    │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8.h:2751:26: note… │
│ passing argument to parameter 'isolate' here                                 │
│    int WriteUtf8(Isolate* isolate, char* buffer, int length = -1,            │
│                           ^                                                  │
│ In file included from ../fsevents.cc:6:                                      │
│ ../../nan/nan.h:1818:28: warning: 'Set' is deprecated: Use maybe version     │
│ [-Wdeprecated-declarations]                                                  │
│      New(persistentHandle)->Set(New(key).ToLocalChecked(), value);           │
│                             ^                                                │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8.h:3371:3: note:  │
│ 'Set' has been explicitly marked deprecated here                             │
│    V8_DEPRECATED("Use maybe version",                                        │
│    ^                                                                         │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8config.h:311:29:  │
│ note: expanded from macro 'V8_DEPRECATED'                                    │
│    declarator __attribute__((deprecated(message)))                           │
│                              ^                                               │
│ In file included from ../fsevents.cc:6:                                      │
│ ../../nan/nan.h:1824:28: warning: 'Set' is deprecated: Use maybe version     │
│ [-Wdeprecated-declarations]                                                  │
│      New(persistentHandle)->Set(key, value);                                 │
│                             ^                                                │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8.h:3371:3: note:  │
│ 'Set' has been explicitly marked deprecated here                             │
│    V8_DEPRECATED("Use maybe version",                                        │
│    ^                                                                         │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8config.h:311:29:  │
│ note: expanded from macro 'V8_DEPRECATED'                                    │
│    declarator __attribute__((deprecated(message)))                           │
│                              ^                                               │
│ In file included from ../fsevents.cc:6:                                      │
│ ../../nan/nan.h:1830:28: warning: 'Set' is deprecated: Use maybe version     │
│ [-Wdeprecated-declarations]                                                  │
│      New(persistentHandle)->Set(index, value);                               │
│                             ^                                                │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8.h:3380:3: note:  │
│ 'Set' has been explicitly marked deprecated here                             │
│    V8_DEPRECATED("Use maybe version",                                        │
│    ^                                                                         │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8config.h:311:29:  │
│ note: expanded from macro 'V8_DEPRECATED'                                    │
│    declarator __attribute__((deprecated(message)))                           │
│                              ^                                               │
│ In file included from ../fsevents.cc:6:                                      │
│ ../../nan/nan.h:1836:32: warning: 'Get' is deprecated: Use maybe version     │
│ [-Wdeprecated-declarations]                                                  │
│          New(persistentHandle)->Get(New(key).ToLocalChecked()));             │
│                                 ^                                            │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8.h:3425:3: note:  │
│ 'Get' has been explicitly marked deprecated here                             │
│    V8_DEPRECATED("Use maybe version", Local<Value> Get(Local<Value> key));   │
│    ^                                                                         │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8config.h:311:29:  │
│ note: expanded from macro 'V8_DEPRECATED'                                    │
│    declarator __attribute__((deprecated(message)))                           │
│                              ^                                               │
│ In file included from ../fsevents.cc:6:                                      │
│ ../../nan/nan.h:1842:48: warning: 'Get' is deprecated: Use maybe version     │
│ [-Wdeprecated-declarations]                                                  │
│      return scope.Escape(New(persistentHandle)->Get(key));                   │
│                                                 ^                            │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8.h:3425:3: note:  │
│ 'Get' has been explicitly marked deprecated here                             │
│    V8_DEPRECATED("Use maybe version", Local<Value> Get(Local<Value> key));   │
│    ^                                                                         │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8config.h:311:29:  │
│ note: expanded from macro 'V8_DEPRECATED'                                    │
│    declarator __attribute__((deprecated(message)))                           │
│                              ^                                               │
│ In file included from ../fsevents.cc:6:                                      │
│ ../../nan/nan.h:1847:48: warning: 'Get' is deprecated: Use maybe version     │
│ [-Wdeprecated-declarations]                                                  │
│      return scope.Escape(New(persistentHandle)->Get(index));                 │
│                                                 ^                            │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8.h:3429:3: note:  │
│ 'Get' has been explicitly marked deprecated here                             │
│    V8_DEPRECATED("Use maybe version", Local<Value> Get(uint32_t index));     │
│    ^                                                                         │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8config.h:311:29:  │
│ note: expanded from macro 'V8_DEPRECATED'                                    │
│    declarator __attribute__((deprecated(message)))                           │
│                              ^                                               │
│ In file included from ../fsevents.cc:6:                                      │
│ In file included from ../../nan/nan.h:2657:                                  │
│ ../../nan/nan_object_wrap.h:24:25: error: no member named 'IsNearDeath' in   │
│ 'Nan::Persistent<v8::Object, v8::NonCopyablePersistentTraits<v8::Object> >'  │
│      assert(persistent().IsNearDeath());                                     │
│             ~~~~~~~~~~~~ ^                                                   │
│ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Develo… │
│ note: expanded from macro 'assert'                                           │
│      (__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__… │
│ #e) : (void)0)                                                               │
│                          ^                                                   │
│ In file included from ../fsevents.cc:6:                                      │
│ In file included from ../../nan/nan.h:2657:                                  │
│ ../../nan/nan_object_wrap.h:67:18: warning: 'MarkIndependent' is deprecated… │
│ Weak objects are always considered independent. Use TracedGlobal when tryin… │
│ to use EmbedderHeapTracer. Use a strong handle when trying to keep an objec… │
│ alive. [-Wdeprecated-declarations]                                           │
│      persistent().MarkIndependent();                                         │
│                   ^                                                          │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8.h:563:3: note:   │
│ 'MarkIndependent' has been explicitly marked deprecated here                 │
│    V8_DEPRECATED(                                                            │
│    ^                                                                         │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8config.h:311:29:  │
│ note: expanded from macro 'V8_DEPRECATED'                                    │
│    declarator __attribute__((deprecated(message)))                           │
│                              ^                                               │
│ In file included from ../fsevents.cc:6:                                      │
│ In file included from ../../nan/nan.h:2657:                                  │
│ ../../nan/nan_object_wrap.h:124:26: error: no member named 'IsNearDeath' in  │
│ 'Nan::Persistent<v8::Object, v8::NonCopyablePersistentTraits<v8::Object> >'  │
│      assert(wrap->handle_.IsNearDeath());                                    │
│             ~~~~~~~~~~~~~ ^                                                  │
│ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Develo… │
│ note: expanded from macro 'assert'                                           │
│      (__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__… │
│ #e) : (void)0)                                                               │
│                          ^                                                   │
│ ../fsevents.cc:50:32: error: no template named 'Handle' in namespace 'v8'    │
│      static void Initialize(v8::Handle<v8::Object> exports);                 │
│                             ~~~~^                                            │
│ ../fsevents.cc:63:6: warning: field 'async_resource' will be initialized af… │
│ field 'lockStarted' [-Wreorder]                                              │
│     : async_resource("fsevents:FSEvents"), lockStarted(false) {              │
│       ^                                                                      │
│ In file included from ../fsevents.cc:82:                                     │
│ ../src/constants.cc:89:11: warning: 'Set' is deprecated: Use maybe version   │
│ [-Wdeprecated-declarations]                                                  │
│                                                                              │
│ object->Set(Nan::New<v8::String>("kFSEventStreamEventFlagNone").ToLocalChec… │
│ Nan::New<v8::Integer>(kFSEventStreamEventFlagNone));                         │
│            ^                                                                 │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8.h:3371:3: note:  │
│ 'Set' has been explicitly marked deprecated here                             │
│    V8_DEPRECATED("Use maybe version",                                        │
│    ^                                                                         │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8config.h:311:29:  │
│ note: expanded from macro 'V8_DEPRECATED'                                    │
│    declarator __attribute__((deprecated(message)))                           │
│                              ^                                               │
│ In file included from ../fsevents.cc:82:                                     │
│ ../src/constants.cc:90:11: warning: 'Set' is deprecated: Use maybe version   │
│ [-Wdeprecated-declarations]                                                  │
│                                                                              │
│ object->Set(Nan::New<v8::String>("kFSEventStreamEventFlagMustScanSubDirs").… │
│ Nan::New<v8::Integer>(kFSEventStreamEventFlagMustScanSubDirs));              │
│            ^                                                                 │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8.h:3371:3: note:  │
│ 'Set' has been explicitly marked deprecated here                             │
│    V8_DEPRECATED("Use maybe version",                                        │
│    ^                                                                         │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8config.h:311:29:  │
│ note: expanded from macro 'V8_DEPRECATED'                                    │
│    declarator __attribute__((deprecated(message)))                           │
│                              ^                                               │
│ In file included from ../fsevents.cc:82:                                     │
│ ../src/constants.cc:91:11: warning: 'Set' is deprecated: Use maybe version   │
│ [-Wdeprecated-declarations]                                                  │
│                                                                              │
│ object->Set(Nan::New<v8::String>("kFSEventStreamEventFlagUserDropped").ToLo… │
│ Nan::New<v8::Integer>(kFSEventStreamEventFlagUserDropped));                  │
│            ^                                                                 │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8.h:3371:3: note:  │
│ 'Set' has been explicitly marked deprecated here                             │
│    V8_DEPRECATED("Use maybe version",                                        │
│    ^                                                                         │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8config.h:311:29:  │
│ note: expanded from macro 'V8_DEPRECATED'                                    │
│    declarator __attribute__((deprecated(message)))                           │
│                              ^                                               │
│ In file included from ../fsevents.cc:82:                                     │
│ ../src/constants.cc:92:11: warning: 'Set' is deprecated: Use maybe version   │
│ [-Wdeprecated-declarations]                                                  │
│                                                                              │
│ object->Set(Nan::New<v8::String>("kFSEventStreamEventFlagKernelDropped").To… │
│ Nan::New<v8::Integer>(kFSEventStreamEventFlagKernelDropped));                │
│            ^                                                                 │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8.h:3371:3: note:  │
│ 'Set' has been explicitly marked deprecated here                             │
│    V8_DEPRECATED("Use maybe version",                                        │
│    ^                                                                         │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8config.h:311:29:  │
│ note: expanded from macro 'V8_DEPRECATED'                                    │
│    declarator __attribute__((deprecated(message)))                           │
│                              ^                                               │
│ In file included from ../fsevents.cc:82:                                     │
│ ../src/constants.cc:93:11: warning: 'Set' is deprecated: Use maybe version   │
│ [-Wdeprecated-declarations]                                                  │
│                                                                              │
│ object->Set(Nan::New<v8::String>("kFSEventStreamEventFlagEventIdsWrapped").… │
│ Nan::New<v8::Integer>(kFSEventStreamEventFlagEventIdsWrapped));              │
│            ^                                                                 │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8.h:3371:3: note:  │
│ 'Set' has been explicitly marked deprecated here                             │
│    V8_DEPRECATED("Use maybe version",                                        │
│    ^                                                                         │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8config.h:311:29:  │
│ note: expanded from macro 'V8_DEPRECATED'                                    │
│    declarator __attribute__((deprecated(message)))                           │
│                              ^                                               │
│ In file included from ../fsevents.cc:82:                                     │
│ ../src/constants.cc:94:11: warning: 'Set' is deprecated: Use maybe version   │
│ [-Wdeprecated-declarations]                                                  │
│                                                                              │
│ object->Set(Nan::New<v8::String>("kFSEventStreamEventFlagHistoryDone").ToLo… │
│ Nan::New<v8::Integer>(kFSEventStreamEventFlagHistoryDone));                  │
│            ^                                                                 │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8.h:3371:3: note:  │
│ 'Set' has been explicitly marked deprecated here                             │
│    V8_DEPRECATED("Use maybe version",                                        │
│    ^                                                                         │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8config.h:311:29:  │
│ note: expanded from macro 'V8_DEPRECATED'                                    │
│    declarator __attribute__((deprecated(message)))                           │
│                              ^                                               │
│ In file included from ../fsevents.cc:82:                                     │
│ ../src/constants.cc:95:11: warning: 'Set' is deprecated: Use maybe version   │
│ [-Wdeprecated-declarations]                                                  │
│                                                                              │
│ object->Set(Nan::New<v8::String>("kFSEventStreamEventFlagRootChanged").ToLo… │
│ Nan::New<v8::Integer>(kFSEventStreamEventFlagRootChanged));                  │
│            ^                                                                 │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8.h:3371:3: note:  │
│ 'Set' has been explicitly marked deprecated here                             │
│    V8_DEPRECATED("Use maybe version",                                        │
│    ^                                                                         │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8config.h:311:29:  │
│ note: expanded from macro 'V8_DEPRECATED'                                    │
│    declarator __attribute__((deprecated(message)))                           │
│                              ^                                               │
│ In file included from ../fsevents.cc:82:                                     │
│ ../src/constants.cc:96:11: warning: 'Set' is deprecated: Use maybe version   │
│ [-Wdeprecated-declarations]                                                  │
│                                                                              │
│ object->Set(Nan::New<v8::String>("kFSEventStreamEventFlagMount").ToLocalChe… │
│ Nan::New<v8::Integer>(kFSEventStreamEventFlagMount));                        │
│            ^                                                                 │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8.h:3371:3: note:  │
│ 'Set' has been explicitly marked deprecated here                             │
│    V8_DEPRECATED("Use maybe version",                                        │
│    ^                                                                         │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8config.h:311:29:  │
│ note: expanded from macro 'V8_DEPRECATED'                                    │
│    declarator __attribute__((deprecated(message)))                           │
│                              ^                                               │
│ In file included from ../fsevents.cc:82:                                     │
│ ../src/constants.cc:97:11: warning: 'Set' is deprecated: Use maybe version   │
│ [-Wdeprecated-declarations]                                                  │
│                                                                              │
│ object->Set(Nan::New<v8::String>("kFSEventStreamEventFlagUnmount").ToLocalC… │
│ Nan::New<v8::Integer>(kFSEventStreamEventFlagUnmount));                      │
│            ^                                                                 │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8.h:3371:3: note:  │
│ 'Set' has been explicitly marked deprecated here                             │
│    V8_DEPRECATED("Use maybe version",                                        │
│    ^                                                                         │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8config.h:311:29:  │
│ note: expanded from macro 'V8_DEPRECATED'                                    │
│    declarator __attribute__((deprecated(message)))                           │
│                              ^                                               │
│ In file included from ../fsevents.cc:82:                                     │
│ ../src/constants.cc:98:11: warning: 'Set' is deprecated: Use maybe version   │
│ [-Wdeprecated-declarations]                                                  │
│                                                                              │
│ object->Set(Nan::New<v8::String>("kFSEventStreamEventFlagItemCreated").ToLo… │
│ Nan::New<v8::Integer>(kFSEventStreamEventFlagItemCreated));                  │
│            ^                                                                 │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8.h:3371:3: note:  │
│ 'Set' has been explicitly marked deprecated here                             │
│    V8_DEPRECATED("Use maybe version",                                        │
│    ^                                                                         │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8config.h:311:29:  │
│ note: expanded from macro 'V8_DEPRECATED'                                    │
│    declarator __attribute__((deprecated(message)))                           │
│                              ^                                               │
│ In file included from ../fsevents.cc:82:                                     │
│ ../src/constants.cc:99:11: warning: 'Set' is deprecated: Use maybe version   │
│ [-Wdeprecated-declarations]                                                  │
│                                                                              │
│ object->Set(Nan::New<v8::String>("kFSEventStreamEventFlagItemRemoved").ToLo… │
│ Nan::New<v8::Integer>(kFSEventStreamEventFlagItemRemoved));                  │
│            ^                                                                 │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8.h:3371:3: note:  │
│ 'Set' has been explicitly marked deprecated here                             │
│    V8_DEPRECATED("Use maybe version",                                        │
│    ^                                                                         │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8config.h:311:29:  │
│ note: expanded from macro 'V8_DEPRECATED'                                    │
│    declarator __attribute__((deprecated(message)))                           │
│                              ^                                               │
│ In file included from ../fsevents.cc:82:                                     │
│ ../src/constants.cc:100:11: warning: 'Set' is deprecated: Use maybe version  │
│ [-Wdeprecated-declarations]                                                  │
│                                                                              │
│ object->Set(Nan::New<v8::String>("kFSEventStreamEventFlagItemInodeMetaMod")… │
│ Nan::New<v8::Integer>(kFSEventStreamEventFlagItemInodeMetaMod));             │
│            ^                                                                 │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8.h:3371:3: note:  │
│ 'Set' has been explicitly marked deprecated here                             │
│    V8_DEPRECATED("Use maybe version",                                        │
│    ^                                                                         │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8config.h:311:29:  │
│ note: expanded from macro 'V8_DEPRECATED'                                    │
│    declarator __attribute__((deprecated(message)))                           │
│                              ^                                               │
│ In file included from ../fsevents.cc:82:                                     │
│ ../src/constants.cc:101:11: warning: 'Set' is deprecated: Use maybe version  │
│ [-Wdeprecated-declarations]                                                  │
│                                                                              │
│ object->Set(Nan::New<v8::String>("kFSEventStreamEventFlagItemRenamed").ToLo… │
│ Nan::New<v8::Integer>(kFSEventStreamEventFlagItemRenamed));                  │
│            ^                                                                 │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8.h:3371:3: note:  │
│ 'Set' has been explicitly marked deprecated here                             │
│    V8_DEPRECATED("Use maybe version",                                        │
│    ^                                                                         │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8config.h:311:29:  │
│ note: expanded from macro 'V8_DEPRECATED'                                    │
│    declarator __attribute__((deprecated(message)))                           │
│                              ^                                               │
│ In file included from ../fsevents.cc:82:                                     │
│ ../src/constants.cc:102:11: warning: 'Set' is deprecated: Use maybe version  │
│ [-Wdeprecated-declarations]                                                  │
│                                                                              │
│ object->Set(Nan::New<v8::String>("kFSEventStreamEventFlagItemModified").ToL… │
│ Nan::New<v8::Integer>(kFSEventStreamEventFlagItemModified));                 │
│            ^                                                                 │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8.h:3371:3: note:  │
│ 'Set' has been explicitly marked deprecated here                             │
│    V8_DEPRECATED("Use maybe version",                                        │
│    ^                                                                         │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8config.h:311:29:  │
│ note: expanded from macro 'V8_DEPRECATED'                                    │
│    declarator __attribute__((deprecated(message)))                           │
│                              ^                                               │
│ In file included from ../fsevents.cc:82:                                     │
│ ../src/constants.cc:103:11: warning: 'Set' is deprecated: Use maybe version  │
│ [-Wdeprecated-declarations]                                                  │
│                                                                              │
│ object->Set(Nan::New<v8::String>("kFSEventStreamEventFlagItemFinderInfoMod"… │
│ Nan::New<v8::Integer>(kFSEventStreamEventFlagItemFinderInfoMod));            │
│            ^                                                                 │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8.h:3371:3: note:  │
│ 'Set' has been explicitly marked deprecated here                             │
│    V8_DEPRECATED("Use maybe version",                                        │
│    ^                                                                         │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8config.h:311:29:  │
│ note: expanded from macro 'V8_DEPRECATED'                                    │
│    declarator __attribute__((deprecated(message)))                           │
│                              ^                                               │
│ In file included from ../fsevents.cc:82:                                     │
│ ../src/constants.cc:104:11: warning: 'Set' is deprecated: Use maybe version  │
│ [-Wdeprecated-declarations]                                                  │
│                                                                              │
│ object->Set(Nan::New<v8::String>("kFSEventStreamEventFlagItemChangeOwner").… │
│ Nan::New<v8::Integer>(kFSEventStreamEventFlagItemChangeOwner));              │
│            ^                                                                 │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8.h:3371:3: note:  │
│ 'Set' has been explicitly marked deprecated here                             │
│    V8_DEPRECATED("Use maybe version",                                        │
│    ^                                                                         │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8config.h:311:29:  │
│ note: expanded from macro 'V8_DEPRECATED'                                    │
│    declarator __attribute__((deprecated(message)))                           │
│                              ^                                               │
│ In file included from ../fsevents.cc:82:                                     │
│ ../src/constants.cc:105:11: warning: 'Set' is deprecated: Use maybe version  │
│ [-Wdeprecated-declarations]                                                  │
│                                                                              │
│ object->Set(Nan::New<v8::String>("kFSEventStreamEventFlagItemXattrMod").ToL… │
│ Nan::New<v8::Integer>(kFSEventStreamEventFlagItemXattrMod));                 │
│            ^                                                                 │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8.h:3371:3: note:  │
│ 'Set' has been explicitly marked deprecated here                             │
│    V8_DEPRECATED("Use maybe version",                                        │
│    ^                                                                         │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8config.h:311:29:  │
│ note: expanded from macro 'V8_DEPRECATED'                                    │
│    declarator __attribute__((deprecated(message)))                           │
│                              ^                                               │
│ In file included from ../fsevents.cc:82:                                     │
│ ../src/constants.cc:106:11: warning: 'Set' is deprecated: Use maybe version  │
│ [-Wdeprecated-declarations]                                                  │
│                                                                              │
│ object->Set(Nan::New<v8::String>("kFSEventStreamEventFlagItemIsFile").ToLoc… │
│ Nan::New<v8::Integer>(kFSEventStreamEventFlagItemIsFile));                   │
│            ^                                                                 │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8.h:3371:3: note:  │
│ 'Set' has been explicitly marked deprecated here                             │
│    V8_DEPRECATED("Use maybe version",                                        │
│    ^                                                                         │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8config.h:311:29:  │
│ note: expanded from macro 'V8_DEPRECATED'                                    │
│    declarator __attribute__((deprecated(message)))                           │
│                              ^                                               │
│ In file included from ../fsevents.cc:82:                                     │
│ ../src/constants.cc:107:11: warning: 'Set' is deprecated: Use maybe version  │
│ [-Wdeprecated-declarations]                                                  │
│                                                                              │
│ object->Set(Nan::New<v8::String>("kFSEventStreamEventFlagItemIsDir").ToLoca… │
│ Nan::New<v8::Integer>(kFSEventStreamEventFlagItemIsDir));                    │
│            ^                                                                 │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8.h:3371:3: note:  │
│ 'Set' has been explicitly marked deprecated here                             │
│    V8_DEPRECATED("Use maybe version",                                        │
│    ^                                                                         │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8config.h:311:29:  │
│ note: expanded from macro 'V8_DEPRECATED'                                    │
│    declarator __attribute__((deprecated(message)))                           │
│                              ^                                               │
│ In file included from ../fsevents.cc:82:                                     │
│ ../src/constants.cc:108:11: warning: 'Set' is deprecated: Use maybe version  │
│ [-Wdeprecated-declarations]                                                  │
│                                                                              │
│ object->Set(Nan::New<v8::String>("kFSEventStreamEventFlagItemIsSymlink").To… │
│ Nan::New<v8::Integer>(kFSEventStreamEventFlagItemIsSymlink));                │
│            ^                                                                 │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8.h:3371:3: note:  │
│ 'Set' has been explicitly marked deprecated here                             │
│    V8_DEPRECATED("Use maybe version",                                        │
│    ^                                                                         │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8config.h:311:29:  │
│ note: expanded from macro 'V8_DEPRECATED'                                    │
│    declarator __attribute__((deprecated(message)))                           │
│                              ^                                               │
│ ../fsevents.cc:85:16: error: variable has incomplete type 'void'             │
│ void FSEvents::Initialize(v8::Handle<v8::Object> exports) {                  │
│                 ^                                                            │
│ ../fsevents.cc:85:31: error: no member named 'Handle' in namespace 'v8'      │
│ void FSEvents::Initialize(v8::Handle<v8::Object> exports) {                  │
│                            ~~~~^                                             │
│ ../fsevents.cc:85:48: error: expected '(' for function-style cast or type    │
│ construction                                                                 │
│ void FSEvents::Initialize(v8::Handle<v8::Object> exports) {                  │
│                                       ~~~~~~~~~~^                            │
│ ../fsevents.cc:85:50: error: use of undeclared identifier 'exports'          │
│ void FSEvents::Initialize(v8::Handle<v8::Object> exports) {                  │
│                                                   ^                          │
│ ../fsevents.cc:85:58: error: expected ';' after top level declarator         │
│ void FSEvents::Initialize(v8::Handle<v8::Object> exports) {                  │
│                                                           ^                  │
│                                                           ;                  │
│ 30 warnings and 14 errors generated.                                         │
│ make: *** [Release/obj.target/fse/fsevents.o] Error 1                        │
│ gyp ERR! build error                                                         │
│ gyp ERR! stack Error: `make` failed with exit code: 2                        │
│ gyp ERR! stack     at ChildProcess.onExit                                    │
│ (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:196:23)  │
│ gyp ERR! stack     at ChildProcess.emit (events.js:209:13)                   │
│ gyp ERR! stack     at Process.ChildProcess._handle.onexit                    │
│ (internal/child_process.js:272:12)                                           │
│ gyp ERR! System Darwin 18.7.0                                                │
│ gyp ERR! command "/usr/local/Cellar/node/12.10.0/bin/node"                   │
│ "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js"      │
│ "build" "--fallback-to-build"                                                │
│ "--module=/Users/arcy/y/node_modules/fsevents/lib/binding/Release/node-v72-… │
│ "--module_name=fse"                                                          │
│ "--module_path=/Users/arcy/y/node_modules/fsevents/lib/binding/Release/node… │
│ "--napi_version=4" "--node_abi_napi=napi"                                    │
│ gyp ERR! cwd /Users/arcy/y/node_modules/fsevents                             │
│ gyp ERR! node -v v12.10.0                                                    │
│ gyp ERR! node-gyp -v v5.0.3                                                  │
│ gyp ERR! not ok                                                              │
│ node-pre-gyp ERR! build error                                                │
│ node-pre-gyp ERR! stack Error: Failed to execute                             │
│ '/usr/local/Cellar/node/12.10.0/bin/node                                     │
│ /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build  │
│ --fallback-to-build                                                          │
│ --module=/Users/arcy/y/node_modules/fsevents/lib/binding/Release/node-v72-d… │
│ --module_name=fse                                                            │
│ --module_path=/Users/arcy/y/node_modules/fsevents/lib/binding/Release/node-… │
│ --napi_version=4 --node_abi_napi=napi' (1)                                   │
│ node-pre-gyp ERR! stack     at ChildProcess.<anonymous>                      │
│ (/Users/arcy/y/node_modules/fsevents/node_modules/node-pre-gyp/lib/util/com… │
│ node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:209:13)          │
│ node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:1021:1… │
│ node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit           │
│ (internal/child_process.js:283:5)                                            │
│ node-pre-gyp ERR! System Darwin 18.7.0                                       │
│ node-pre-gyp ERR! command "/usr/local/Cellar/node/12.10.0/bin/node"          │
│ "/Users/arcy/y/node_modules/fsevents/node_modules/node-pre-gyp/bin/node-pre… │
│ "install" "--fallback-to-build"                                              │
│ node-pre-gyp ERR! cwd /Users/arcy/y/node_modules/fsevents                    │
│ node-pre-gyp ERR! node -v v12.10.0                                           │
│ node-pre-gyp ERR! node-pre-gyp -v v0.10.0                                    │
│ node-pre-gyp ERR! not ok                                                     │
│ info sharp Downloading                                                       │
│ https://github.com/lovell/sharp-libvips/releases/download/v8.6.1/libvips-8.… │
│ prebuild-install WARN install No prebuilt binaries found (target=12.10.0     │
│ runtime=node arch=x64 platform=darwin)                                       │
│ In file included from ../src/common.cc:24:                                   │
│ In file included from ../../nan/nan.h:202:                                   │
│ In file included from ../../nan/nan_converters.h:67:                         │
│ ../../nan/nan_converters_43_inl.h:22:1: warning: 'ToBoolean' is deprecated:  │
│ ToBoolean can never throw. Use Local version. [-Wdeprecated-declarations]    │
│ X(Boolean)                                                                   │
│ ^                                                                            │
│ ../../nan/nan_converters_43_inl.h:18:12: note: expanded from macro 'X'       │
│        val->To ## TYPE(isolate->GetCurrentContext())                       … │
│ \                                                                            │
│             ^                                                                │
│ <scratch space>:50:1: note: expanded from here                               │
│ ToBoolean                                                                    │
│ ^                                                                            │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8.h:2536:3: note:  │
│ 'ToBoolean' has been explicitly marked deprecated here                       │
│    V8_DEPRECATED("ToBoolean can never throw. Use Local version.",            │
│    ^                                                                         │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8config.h:311:29:  │
│ note: expanded from macro 'V8_DEPRECATED'                                    │
│    declarator __attribute__((deprecated(message)))                           │
│                              ^                                               │
│ In file included from ../src/common.cc:24:                                   │
│ In file included from ../../nan/nan.h:202:                                   │
│ In file included from ../../nan/nan_converters.h:67:                         │
│ ../../nan/nan_converters_43_inl.h:40:1: warning: 'BooleanValue' is deprecat… │
│ BooleanValue can never throw. Use Isolate version. [-Wdeprecated-declaratio… │
│ X(bool, Boolean)                                                             │
│ ^                                                                            │
│ ../../nan/nan_converters_43_inl.h:37:15: note: expanded from macro 'X'       │
│    return val->NAME ## Value(isolate->GetCurrentContext());                … │
│ \                                                                            │
│                ^                                                             │
│ <scratch space>:57:1: note: expanded from here                               │
│ BooleanValue                                                                 │
│ ^                                                                            │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8.h:2574:3: note:  │
│ 'BooleanValue' has been explicitly marked deprecated here                    │
│    V8_DEPRECATED("BooleanValue can never throw. Use Isolate version.",       │
│    ^                                                                         │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8config.h:311:29:  │
│ note: expanded from macro 'V8_DEPRECATED'                                    │
│    declarator __attribute__((deprecated(message)))                           │
│                              ^                                               │
│ In file included from ../src/common.cc:24:                                   │
│ In file included from ../../nan/nan.h:203:                                   │
│ In file included from ../../nan/nan_new.h:189:                               │
│ ../../nan/nan_implementation_12_inl.h:103:42: error: no viable conversion f… │
│ 'v8::Isolate *' to 'Local<v8::Context>'                                      │
│    return scope.Escape(v8::Function::New( isolate                            │
│                                           ^~~~~~~                            │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8.h:183:7: note:   │
│ candidate constructor (the implicit copy constructor) not viable: no known   │
│ conversion from 'v8::Isolate *' to 'const v8::Local<v8::Context> &' for 1st  │
│ argument                                                                     │
│ class Local {                                                                │
│        ^                                                                     │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8.h:183:7: note:   │
│ candidate constructor (the implicit move constructor) not viable: no known   │
│ conversion from 'v8::Isolate *' to 'v8::Local<v8::Context> &&' for 1st       │
│ argument                                                                     │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8.h:187:13: note:  │
│ candidate template ignored: could not match 'Local<type-parameter-0-0>'      │
│ against 'v8::Isolate *'                                                      │
│    V8_INLINE Local(Local<S> that)                                            │
│              ^                                                               │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8.h:4139:22: note… │
│ passing argument to parameter 'context' here                                 │
│        Local<Context> context, FunctionCallback callback,                    │
│                       ^                                                      │
│ In file included from ../src/common.cc:24:                                   │
│ In file included from ../../nan/nan.h:203:                                   │
│ In file included from ../../nan/nan_new.h:189:                               │
│ ../../nan/nan_implementation_12_inl.h:337:37: error: too few arguments to    │
│ function call, expected 2, have 1                                            │
│    return v8::StringObject::New(value).As<v8::StringObject>();               │
│           ~~~~~~~~~~~~~~~~~~~~~      ^                                       │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8.h:5394:3: note:  │
│ 'New' declared here                                                          │
│    static Local<Value> New(Isolate* isolate, Local<String> value);           │
│    ^                                                                         │
│ In file included from ../src/common.cc:24:                                   │
│ In file included from ../../nan/nan.h:203:                                   │
│ In file included from ../../nan/nan_new.h:189:                               │
│ ../../nan/nan_implementation_12_inl.h:337:58: error: expected '(' for        │
│ function-style cast or type construction                                     │
│    return v8::StringObject::New(value).As<v8::StringObject>();               │
│                                           ~~~~~~~~~~~~~~~~^                  │
│ ../../nan/nan_implementation_12_inl.h:337:60: error: expected expression     │
│    return v8::StringObject::New(value).As<v8::StringObject>();               │
│                                                             ^                │
│ In file included from ../src/common.cc:24:                                   │
│ ../../nan/nan.h:1034:44: error: no matching member function for call to      │
│ 'ToString'                                                                   │
│        v8::Local<v8::String> string = from->ToString();                      │
│                                       ~~~~~~^~~~~~~~                         │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8.h:2541:44: note… │
│ candidate function not viable: requires single argument 'context', but no    │
│ arguments were provided                                                      │
│    V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(                        │
│                                             ^                                │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8.h:2557:31: note… │
│ candidate function not viable: requires single argument 'isolate', but no    │
│ arguments were provided                                                      │
│                  Local<String> ToString(Isolate* isolate) const);            │
│                                ^                                             │
│ In file included from ../src/common.cc:24:                                   │
│ ../../nan/nan.h:1044:37: error: cannot initialize a parameter of type        │
│ 'v8::Isolate *' with an lvalue of type 'char *'                              │
│          length_ = string->WriteUtf8(str_, static_cast<int>(len), 0, flags); │
│                                      ^~~~                                    │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8.h:2751:26: note… │
│ passing argument to parameter 'isolate' here                                 │
│    int WriteUtf8(Isolate* isolate, char* buffer, int length = -1,            │
│                           ^                                                  │
│ In file included from ../src/common.cc:24:                                   │
│ ../../nan/nan.h:1818:28: warning: 'Set' is deprecated: Use maybe version     │
│ [-Wdeprecated-declarations]                                                  │
│      New(persistentHandle)->Set(New(key).ToLocalChecked(), value);           │
│                             ^                                                │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8.h:3371:3: note:  │
│ 'Set' has been explicitly marked deprecated here                             │
│    V8_DEPRECATED("Use maybe version",                                        │
│    ^                                                                         │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8config.h:311:29:  │
│ note: expanded from macro 'V8_DEPRECATED'                                    │
│    declarator __attribute__((deprecated(message)))                           │
│                              ^                                               │
│ In file included from ../src/common.cc:24:                                   │
│ ../../nan/nan.h:1824:28: warning: 'Set' is deprecated: Use maybe version     │
│ [-Wdeprecated-declarations]                                                  │
│      New(persistentHandle)->Set(key, value);                                 │
│                             ^                                                │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8.h:3371:3: note:  │
│ 'Set' has been explicitly marked deprecated here                             │
│    V8_DEPRECATED("Use maybe version",                                        │
│    ^                                                                         │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8config.h:311:29:  │
│ note: expanded from macro 'V8_DEPRECATED'                                    │
│    declarator __attribute__((deprecated(message)))                           │
│                              ^                                               │
│ In file included from ../src/common.cc:24:                                   │
│ ../../nan/nan.h:1830:28: warning: 'Set' is deprecated: Use maybe version     │
│ [-Wdeprecated-declarations]                                                  │
│      New(persistentHandle)->Set(index, value);                               │
│                             ^                                                │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8.h:3380:3: note:  │
│ 'Set' has been explicitly marked deprecated here                             │
│    V8_DEPRECATED("Use maybe version",                                        │
│    ^                                                                         │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8config.h:311:29:  │
│ note: expanded from macro 'V8_DEPRECATED'                                    │
│    declarator __attribute__((deprecated(message)))                           │
│                              ^                                               │
│ In file included from ../src/common.cc:24:                                   │
│ ../../nan/nan.h:1836:32: warning: 'Get' is deprecated: Use maybe version     │
│ [-Wdeprecated-declarations]                                                  │
│          New(persistentHandle)->Get(New(key).ToLocalChecked()));             │
│                                 ^                                            │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8.h:3425:3: note:  │
│ 'Get' has been explicitly marked deprecated here                             │
│    V8_DEPRECATED("Use maybe version", Local<Value> Get(Local<Value> key));   │
│    ^                                                                         │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8config.h:311:29:  │
│ note: expanded from macro 'V8_DEPRECATED'                                    │
│    declarator __attribute__((deprecated(message)))                           │
│                              ^                                               │
│ In file included from ../src/common.cc:24:                                   │
│ ../../nan/nan.h:1842:48: warning: 'Get' is deprecated: Use maybe version     │
│ [-Wdeprecated-declarations]                                                  │
│      return scope.Escape(New(persistentHandle)->Get(key));                   │
│                                                 ^                            │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8.h:3425:3: note:  │
│ 'Get' has been explicitly marked deprecated here                             │
│    V8_DEPRECATED("Use maybe version", Local<Value> Get(Local<Value> key));   │
│    ^                                                                         │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8config.h:311:29:  │
│ note: expanded from macro 'V8_DEPRECATED'                                    │
│    declarator __attribute__((deprecated(message)))                           │
│                              ^                                               │
│ In file included from ../src/common.cc:24:                                   │
│ ../../nan/nan.h:1847:48: warning: 'Get' is deprecated: Use maybe version     │
│ [-Wdeprecated-declarations]                                                  │
│      return scope.Escape(New(persistentHandle)->Get(index));                 │
│                                                 ^                            │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8.h:3429:3: note:  │
│ 'Get' has been explicitly marked deprecated here                             │
│    V8_DEPRECATED("Use maybe version", Local<Value> Get(uint32_t index));     │
│    ^                                                                         │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8config.h:311:29:  │
│ note: expanded from macro 'V8_DEPRECATED'                                    │
│    declarator __attribute__((deprecated(message)))                           │
│                              ^                                               │
│ In file included from ../src/common.cc:24:                                   │
│ In file included from ../../nan/nan.h:2657:                                  │
│ ../../nan/nan_object_wrap.h:24:25: error: no member named 'IsNearDeath' in   │
│ 'Nan::Persistent<v8::Object, v8::NonCopyablePersistentTraits<v8::Object> >'  │
│      assert(persistent().IsNearDeath());                                     │
│             ~~~~~~~~~~~~ ^                                                   │
│ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Develo… │
│ note: expanded from macro 'assert'                                           │
│      (__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__… │
│ #e) : (void)0)                                                               │
│                          ^                                                   │
│ In file included from ../src/common.cc:24:                                   │
│ In file included from ../../nan/nan.h:2657:                                  │
│ ../../nan/nan_object_wrap.h:67:18: warning: 'MarkIndependent' is deprecated… │
│ Weak objects are always considered independent. Use TracedGlobal when tryin… │
│ to use EmbedderHeapTracer. Use a strong handle when trying to keep an objec… │
│ alive. [-Wdeprecated-declarations]                                           │
│      persistent().MarkIndependent();                                         │
│                   ^                                                          │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8.h:563:3: note:   │
│ 'MarkIndependent' has been explicitly marked deprecated here                 │
│    V8_DEPRECATED(                                                            │
│    ^                                                                         │
│ /Users/arcy/Library/Caches/node-gyp/12.10.0/include/node/v8config.h:311:29:  │
│ note: expanded from macro 'V8_DEPRECATED'                                    │
│    declarator __attribute__((deprecated(message)))                           │
│                              ^                                               │
│ In file included from ../src/common.cc:24:                                   │
│ In file included from ../../nan/nan.h:2657:                                  │
│ ../../nan/nan_object_wrap.h:124:26: error: no member named 'IsNearDeath' in  │
│ 'Nan::Persistent<v8::Object, v8::NonCopyablePersistentTraits<v8::Object> >'  │
│      assert(wrap->handle_.IsNearDeath());                                    │
│             ~~~~~~~~~~~~~ ^                                                  │
│ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Develo… │
│ note: expanded from macro 'assert'                                           │
│      (__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__… │
│ #e) : (void)0)                                                               │
│                          ^                                                   │
│ In file included from ../src/common.cc:27:                                   │
│ ../src/common.h:82:20: error: no member named 'Handle' in namespace 'v8'     │
│    bool HasAttr(v8::Handle<v8::Object> obj, std::string attr);               │
│                 ~~~~^                                                        │
│ ../src/common.h:82:37: error: expected '(' for function-style cast or type   │
│ construction                                                                 │
│    bool HasAttr(v8::Handle<v8::Object> obj, std::string attr);               │
│                            ~~~~~~~~~~^                                       │
│ ../src/common.h:82:39: error: use of undeclared identifier 'obj'             │
│    bool HasAttr(v8::Handle<v8::Object> obj, std::string attr);               │
│                                        ^                                     │
│ ../src/common.h:82:56: error: expected '(' for function-style cast or type   │
│ construction                                                                 │
│    bool HasAttr(v8::Handle<v8::Object> obj, std::string attr);               │
│                                             ~~~~~~~~~~~ ^                    │
│ ../src/common.h:83:29: error: no member named 'Handle' in namespace 'v8'     │
│    std::string AttrAsStr(v8::Handle<v8::Object> obj, std::string attr);      │
│                          ~~~~^                                               │
│ ../src/common.h:83:46: error: expected '(' for function-style cast or type   │
│ construction                                                                 │
│    std::string AttrAsStr(v8::Handle<v8::Object> obj, std::string attr);      │
│                                     ~~~~~~~~~~^                              │
│ ../src/common.h:83:48: error: use of undeclared identifier 'obj'             │
│    std::string AttrAsStr(v8::Handle<v8::Object> obj, std::string attr);      │
│                                                 ^                            │
│ ../src/common.h:83:65: error: expected '(' for function-style cast or type   │
│ construction                                                                 │
│    std::string AttrAsStr(v8::Handle<v8::Object> obj, std::string attr);      │
│                                                      ~~~~~~~~~~~ ^           │
│ ../src/common.h:84:37: warning: variable templates are a C++14 extension     │
│ [-Wc++14-extensions]                                                         │
│    template<typename T> v8::Local<T> AttrAs(v8::Handle<v8::Object> obj,      │
│ std::string attr) {                                                          │
│                                      ^                                       │
│ ../src/common.h:84:48: error: no member named 'Handle' in namespace 'v8'     │
│    template<typename T> v8::Local<T> AttrAs(v8::Handle<v8::Object> obj,      │
│ std::string attr) {                                                          │
│                                             ~~~~^                            │
│ ../src/common.h:84:65: error: expected '(' for function-style cast or type   │
│ construction                                                                 │
│    template<typename T> v8::Local<T> AttrAs(v8::Handle<v8::Object> obj,      │
│ std::string attr) {                                                          │
│                                                        ~~~~~~~~~~^           │
│ ../src/common.h:84:67: error: use of undeclared identifier 'obj'             │
│    template<typename T> v8::Local<T> AttrAs(v8::Handle<v8::Object> obj,      │
│ std::string attr) {                                                          │
│                                                                    ^         │
│ fatal error: too many errors emitted, stopping now [-ferror-limit=]          │
│ 10 warnings and 20 errors generated.                                         │
│ make: *** [Release/obj.target/sharp/src/common.o] Error 1                    │
│ gyp ERR! build error                                                         │
│ gyp ERR! stack Error: `make` failed with exit code: 2                        │
│ gyp ERR! stack     at ChildProcess.onExit                                    │
│ (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:196:23)  │
│ gyp ERR! stack     at ChildProcess.emit (events.js:209:13)                   │
│ gyp ERR! stack     at Process.ChildProcess._handle.onexit                    │
│ (internal/child_process.js:272:12)                                           │
│ gyp ERR! System Darwin 18.7.0                                                │
│ gyp ERR! command "/usr/local/Cellar/node/12.10.0/bin/node"                   │
│ "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js"      │
│ "rebuild"                                                                    │
│ gyp ERR! cwd /Users/arcy/y/node_modules/sharp                                │
│ gyp ERR! node -v v12.10.0                                                    │
│ gyp ERR! node-gyp -v v5.0.3                                                  │
│ gyp ERR! not ok                                                              │
│ npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected]               │
│ (node_modules/fsevents):                                                     │
│ npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: `no… │
│ install`                                                                     │
│ npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1                │
│                                                                              │
│ npm ERR! code ELIFECYCLE                                                     │
│ npm ERR! errno 1                                                             │
│ npm ERR! [email protected] install: `(node install/libvips && node install/dll-c… │
│ && prebuild-install) || (node-gyp rebuild && node install/dll-copy)`         │
│ npm ERR! Exit status 1                                                       │
│ npm ERR!                                                                     │
│ npm ERR! Failed at the [email protected] install script.                          │
│ npm ERR! This is probably not a problem with npm. There is likely additiona… │
│ logging output above.                                                        │
│                                                                              │
│ npm ERR! A complete log of this run can be found in:                         │
│ npm ERR!     /Users/arcy/.npm/_logs/2019-09-18T13_13_08_383Z-debug.log       │
│                                                                              │
│                                                                              │
│ > [email protected] install /Users/arcy/y/node_modules/fsevents                 │
│ > node install                                                               │
│                                                                              │
│    SOLINK_MODULE(target) Release/.node                                       │
│    CXX(target) Release/obj.target/fse/fsevents.o                             │
│ Failed to execute '/usr/local/Cellar/node/12.10.0/bin/node                   │
│ /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build  │
│ --fallback-to-build                                                          │
│ --module=/Users/arcy/y/node_modules/fsevents/lib/binding/Release/node-v72-d… │
│ --module_name=fse                                                            │
│ --module_path=/Users/arcy/y/node_modules/fsevents/lib/binding/Release/node-… │
│ --napi_version=4 --node_abi_napi=napi' (1)                                   │
│                                                                              │
│ > [email protected] install /Users/arcy/y/node_modules/sharp                      │
│ > (node install/libvips && node install/dll-copy && prebuild-install) ||     │
│ (node-gyp rebuild && node install/dll-copy)                                  │
│                                                                              │
│    TOUCH Release/obj.target/libvips-cpp.stamp                                │
│    CXX(target) Release/obj.target/sharp/src/common.o                         │
│                                                                              │
│      at makeError                                                            │
│ (/usr/local/Cellar/contentful-cli/0.36.2/libexec/lib/node_modules/contentfu… │
│      at                                                                      │
│ /usr/local/Cellar/contentful-cli/0.36.2/libexec/lib/node_modules/contentful… │
│      at runMicrotasks (<anonymous>)                                          │
│      at processTicksAndRejections (internal/process/task_queues.js:93:5)     │

what I tried to do

I tried to remove npm-gyp folder, clean the npm cache, update my node versione, restart the Mac, reinstall the package but nothing happens.

system

I'm using macOS Mojave 10.14.6 with node 12.10.

Getting error upon `gatsby develop`: `Can't resolve 'core-js/modules/web.dom.iterable.js'`

Generating development SSR bundle failed

Can't resolve 'core-js/modules/web.dom.iterable.js' in '/Users/alexey/proj/contentful-starter/.cache'

If you're trying to use a package make sure that 'core-js/modules/web.dom.iterable.js' is installed. If you're trying to use a local file make sure that the path is correct.

File: .cache/find-path.js

Before that I tried install gatsby from scratch and it worked fine

switch from config file to env variables

This will make it easier to deploy to netlify and similar services as we can just provide env variables for the credentials instead of creating/committing the .contentful.json file

Starter kit and contentful UI list different tokens

the yarn setup starter kit asks for :

? Your Space ID
? Your Content Management API access token
? Your Content Delivery API access token

The contentful UI at Settings -> API Keys lists:

Space ID
Content Delivery API - access token
Content Preview API - access token

i've tried various permutations and getting 403 when trying to complete yarn setup

Update gatsby-config.js to match the .env.example

The .env.example have expect ENV variables like this:

CONTENTFUL_SPACE_ID=''
CONTENTFUL_ACCESS_TOKEN=''

But in gatsby-config.js in line 8 it required CONTENTFUL_HOST

const contentfulConfig = {
  spaceId: process.env.CONTENTFUL_SPACE_ID,
  accessToken: process.env.CONTENTFUL_ACCESS_TOKEN,
  host: process.env.CONTENTFUL_HOST,
}

To match the expectation please do delete the line 8.

Deploy to Netlify

The starter is awesome, but I want to know how to auto deploy it to Netlify.
When I auto deploy, I should input my Space ID and so on.
I just don't know how to do this.
Thank you advanced.

User ID not matching in graphql query

I was migrating the gatsby-contentful-starter to version 2 and had an issue where the query for allContentfulPerson was returning null. At first, I thought the created Id was wrong, but more testing proved the query was failing. Interestingly it worked for the name and other fields, but not id. Here is a gif:

query

I did update dependencies in the process of migrating to v2. Here is a repo if you'd like to compare or clone and see if you can replicate: https://github.com/MadeByMike/gatsby-contentful-v2

Use contentful-export to create export file dynamically

I think the setup script is great it does great to get things started. However, while the user already has to provide their space and tokens for the script should we not also have an export script as a convenience that would use contentful-export to generate the necessary export json?

Let me know if you'd like a PR for this.

unable to install contentful to gatsby

hi I'm trying to install contentful but when I type the command
npm install -s [email protected] it does not install and gives the error
info sharp Using cached /Users/atharvsharma/.npm/_libvips/libvips-8.6.1-darwin-x64.tar.gz TOUCH Release/obj.target/libvips-cpp.stamp CXX(target) Release/obj.target/sharp/src/common.o In file included from ../src/common.cc:27: ../src/common.h:82:20: error: no member named 'Handle' in namespace 'v8' bool HasAttr(v8::Handle<v8::Object> obj, std::string attr); ~~~~^ ../src/common.h:82:37: error: expected '(' for function-style cast or type construction bool HasAttr(v8::Handle<v8::Object> obj, std::string attr); ~~~~~~~~~~^ ../src/common.h:82:39: error: use of undeclared identifier 'obj' bool HasAttr(v8::Handle<v8::Object> obj, std::string attr); ^ ../src/common.h:82:56: error: expected '(' for function-style cast or type construction bool HasAttr(v8::Handle<v8::Object> obj, std::string attr); ~~~~~~~~~~~ ^ ../src/common.h:83:29: error: no member named 'Handle' in namespace 'v8' std::string AttrAsStr(v8::Handle<v8::Object> obj, std::string attr); ~~~~^ ../src/common.h:83:46: error: expected '(' for function-style cast or type construction std::string AttrAsStr(v8::Handle<v8::Object> obj, std::string attr); ~~~~~~~~~~^ ../src/common.h:83:48: error: use of undeclared identifier 'obj' std::string AttrAsStr(v8::Handle<v8::Object> obj, std::string attr); ^ ../src/common.h:83:65: error: expected '(' for function-style cast or type construction std::string AttrAsStr(v8::Handle<v8::Object> obj, std::string attr); ~~~~~~~~~~~ ^ ../src/common.h:84:37: warning: variable templates are a C++14 extension [-Wc++14-extensions] template<typename T> v8::Local<T> AttrAs(v8::Handle<v8::Object> obj, std::string attr) { ^ ../src/common.h:84:48: error: no member named 'Handle' in namespace 'v8' template<typename T> v8::Local<T> AttrAs(v8::Handle<v8::Object> obj, std::string attr) { ~~~~^ ../src/common.h:84:65: error: expected '(' for function-style cast or type construction template<typename T> v8::Local<T> AttrAs(v8::Handle<v8::Object> obj, std::string attr) { ~~~~~~~~~~^ ../src/common.h:84:67: error: use of undeclared identifier 'obj' template<typename T> v8::Local<T> AttrAs(v8::Handle<v8::Object> obj, std::string attr) { ^ ../src/common.h:84:84: error: expected '(' for function-style cast or type construction template<typename T> v8::Local<T> AttrAs(v8::Handle<v8::Object> obj, std::string attr) { ~~~~~~~~~~~ ^ ../src/common.h:84:89: error: expected ';' at end of declaration template<typename T> v8::Local<T> AttrAs(v8::Handle<v8::Object> obj, std::string attr) { ^ ; ../src/common.h:84:90: error: expected unqualified-id template<typename T> v8::Local<T> AttrAs(v8::Handle<v8::Object> obj, std::string attr) { ^ ../src/common.h:87:26: warning: variable templates are a C++14 extension [-Wc++14-extensions] template<typename T> T AttrTo(v8::Handle<v8::Object> obj, std::string attr) { ^ ../src/common.h:87:37: error: no member named 'Handle' in namespace 'v8' template<typename T> T AttrTo(v8::Handle<v8::Object> obj, std::string attr) { ~~~~^ ../src/common.h:87:54: error: expected '(' for function-style cast or type construction template<typename T> T AttrTo(v8::Handle<v8::Object> obj, std::string attr) { ~~~~~~~~~~^ ../src/common.h:87:56: error: use of undeclared identifier 'obj' template<typename T> T AttrTo(v8::Handle<v8::Object> obj, std::string attr) { ^ ../src/common.h:87:73: error: expected '(' for function-style cast or type construction template<typename T> T AttrTo(v8::Handle<v8::Object> obj, std::string attr) { ~~~~~~~~~~~ ^ ../src/common.h:87:78: error: expected ';' at end of declaration template<typename T> T AttrTo(v8::Handle<v8::Object> obj, std::string attr) { ^ ; fatal error: too many errors emitted, stopping now [-ferror-limit=] 2 warnings and 20 errors generated. make: *** [Release/obj.target/sharp/src/common.o] Error 1

please help how can I resolve this

Theme JS file for quick config

I Think it takes nothing to make a theme config file, to allow people to quickly add their own to the theme shell.
We can start with the colour palette, but eventually even the layout would be a nice addition, while using inline styles and css grid.
Looking forward to other opinions! Cheers

React Helmet Meta Content not injected properly

When using React Helmet and importing bootstrap (installed through npm: https://facebook.github.io/create-react-app/docs/adding-bootstrap) in the same page, none of the meta tags are being written into the on build.

From what I can tell, in the minifying process a bootstrap attribution for listing the authors is commented out with a comment starting with "/*!" so that it is not minified:

`/*!

For some reason, once built, the React Helmet tags are injected after the closing </style> tag in the , but either something in the above comment structure, or something in the minified bootstrap is appending the rest of the tags, making them unreadable to curl or crawl requests. Any help is greatly appreciated!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.