GithubHelp home page GithubHelp logo

Comments (5)

oorestisime avatar oorestisime commented on June 16, 2024 1

well, since i can't reproduce the error would you mind opening a PR for that?

from gatsby-source-instagram.

oorestisime avatar oorestisime commented on June 16, 2024

Hm i can't reproduce this.

➜ grok@mordor  ~/personal  npx gatsby-cli new my-default-project https://github.com/gatsbyjs/gatsby-starter-default\#v2
npx: installed 211 in 17.483s
info Creating new site from git: https://github.com/gatsbyjs/gatsby-starter-default.git
Cloning into 'my-default-project'...
(node:18227) ExperimentalWarning: The fs.promises API is experimental
remote: Counting objects: 900, done.
remote: Total 900 (delta 0), reused 0 (delta 0), pack-reused 899
Receiving objects: 100% (900/900), 907.48 KiB | 350.00 KiB/s, done.
Resolving deltas: 100% (518/518), done.
success Created starter directory layout
info Installing packages...
yarn install v1.2.1
warning You are using Node "10.1.0" which is not supported and may encounter bugs or unexpected behavior. Yarn supports the following semver range: "^4.8.0 || ^5.7.0 || ^6.2.2 || ^8.0.0"
info No lockfile found.
[1/4] Resolving packages...
[2/4] Fetching packages...
info [email protected]: The platform "linux" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning "[email protected]" has unmet peer dependency "ajv@>=5.0.0".
[4/4] Building fresh packages...
success Saved lockfile.
Done in 70.08s.
➜ grok@mordor  ~/personal  cd my-default-project
➜ grok@mordor  ~/personal/my-default-project  yarn add gatsby-source-instagram
yarn add v1.2.1
warning You are using Node "10.1.0" which is not supported and may encounter bugs or unexpected behavior. Yarn supports the following semver range: "^4.8.0 || ^5.7.0 || ^6.2.2 || ^8.0.0"
[1/4] Resolving packages...
[2/4] Fetching packages...
info [email protected]: The platform "linux" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning "[email protected]" has unmet peer dependency "ajv@>=5.0.0".
[4/4] Building fresh packages...
success Saved lockfile.
success Saved 2 new dependencies.
├─ [email protected]
└─ [email protected]
Done in 8.88s.
➜ grok@mordor  ~/personal/my-default-project  nano gatsby-config.js
➜ grok@mordor  ~/personal/my-default-project  gatsby develop
(node:18575) ExperimentalWarning: The fs.promises API is experimental
success open and validate gatsby-config — 0.020 s
success load plugins — 0.208 s
success onPreInit — 0.117 s
success delete html and css files from previous builds — 0.007 s
success initialize cache — 0.007 s
success copy gatsby files — 0.012 s
success onPreBootstrap — 0.003 s
success source and transform nodes — 1.222 s
success building schema — 0.126 s
success createPages — 0.002 s
success createPagesStatefully — 0.025 s
success onPreExtractQueries — 0.001 s
success update schema — 0.094 s
success extract queries from components — 0.042 s
success run graphql queries — 0.030 s — 6/6 205.74 queries/second
success write out page data — 0.005 s
success write out redirect data — 0.001 s
⠄ onPostBootstrapdone generating icons for manifest
success onPostBootstrap — 0.177 s
info bootstrap finished - 3.748 s
(node:18586) ExperimentalWarning: The fs.promises API is experimental
 DONE  Compiled successfully in 2600ms    

Can you try and clone the source to the plugins directory locally, then yarn build it and run again?

from gatsby-source-instagram.

m4rcelofs avatar m4rcelofs commented on June 16, 2024

Can you try and clone the source to the plugins directory locally, then yarn build it and run again?

Sure thing, but I'm afraid I got the same results. Only difference I can see is that I'm on Windows and on Node 10.10.0, but using nvm to try Node 10.1.0 also didn't work.

Interestingly enough, if I override the babel transpiled version (\plugins\gatsby-source-instagram\gatsby-node.js) with the non-transpiled version from \plugins\gatsby-source-instagram\src\gatsby-node.js, everything seems to work (but can't be 100% sure because our company firewall blocks instagram).

from gatsby-source-instagram.

oorestisime avatar oorestisime commented on June 16, 2024

i've published and pushed a new version if you could try to see if things are better. i added the runtime plugin in the plugins

from gatsby-source-instagram.

m4rcelofs avatar m4rcelofs commented on June 16, 2024

i've published and pushed a new version if you could try to see if things are better. i added the runtime plugin in the plugins

Nope, still no luck. Playing around with the options, one thing that did work was defining a target on .babelrc:

{
  "presets": [
    [
      "@babel/preset-env",
       {
        "targets": {
          "node": "6.0"
        }
      }
    ]
  ],
}

Which also has the advantage of not requiring any extra plugins

from gatsby-source-instagram.

Related Issues (20)

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.