Giter Club home page Giter Club logo

Comments (12)

chadfawcett avatar chadfawcett commented on July 16, 2024 3

I ran into this issue and it turned out I accidentally installed this plugin in the parent directory. When following the tutorial mentioned above, you will have the following directory structure:

  • gatsby-strapi-tutorial
    • api
      • ...
    • blog
      • ...

I accidentally installed into the gatsby-strapi-tutorial directory. Once I installed it into the blog directory, everything worked as expected.

from gatsby-source-strapi.

lauriejim avatar lauriejim commented on July 16, 2024

I follow the tuto and I don't get any errors...

from gatsby-source-strapi.

jacobherrington avatar jacobherrington commented on July 16, 2024

Interesting, I'll give it another shot sometime. Thanks!

from gatsby-source-strapi.

iangregsondev avatar iangregsondev commented on July 16, 2024

This is strange, as I also get the error, there is always some chatter over at gatsby saying its a known problem but I haven't seen any workaround or fix.

So I would be happy to know if somebody fixed it and how ?

A lot of the replies are saying to use node > 8 and not node 4. I am on Node 10

from gatsby-source-strapi.

jacobherrington avatar jacobherrington commented on July 16, 2024

@appsolutegeek That's interesting, maybe it's an issue with Node 10.

@lauriejim what version of Node where you using?

from gatsby-source-strapi.

iangregsondev avatar iangregsondev commented on July 16, 2024

Hi,

There is some talk of the issue / similar issue here gatsbyjs/gatsby#1905

One of the suggestion was to upgrade to gatsby beta, this does not work.

Although all other plugins don't seem to have this problem.

I hope we can get to the bottom of this as its stopping me from implementing strapi.

Would be interesting to know what versions of node - others are using that don't have the problem, if it's truly related to the node version.

from gatsby-source-strapi.

iangregsondev avatar iangregsondev commented on July 16, 2024

Hi, I just went back to 8.11.2

➜ my-new-blog node --version
v8.11.2

and same issue.

 Error: Cannot find module 'babel-runtime/regenerator'

  - v8-compile-cache.js:159 require
    [my-new-blog]/[v8-compile-cache]/v8-compile-cache.js:159:20

  - gatsby-node.js:3 Object.<anonymous>
    [Personal]/[gatsby-source-strapi]/gatsby-node.js:3:20

  - v8-compile-cache.js:178 Module._compile
    [my-new-blog]/[v8-compile-cache]/v8-compile-cache.js:178:30

  - module.js:11 require
    internal/module.js:11:18

  - api-runner-node.js:87 runAPI
    [my-new-blog]/[gatsby]/dist/utils/api-runner-node.js:87:20

  - api-runner-node.js:187
    [my-new-blog]/[gatsby]/dist/utils/api-runner-node.js:187:33

  - map.js:27
    [my-new-blog]/[async]/internal/map.js:27:9

  - eachOfLimit.js:64 replenish
    [my-new-blog]/[async]/internal/eachOfLimit.js:64:17

  - eachOfLimit.js:49 iterateeCallback
    [my-new-blog]/[async]/internal/eachOfLimit.js:49:17

  - onlyOnce.js:12
    [my-new-blog]/[async]/internal/onlyOnce.js:12:16

  - map.js:29
    [my-new-blog]/[async]/internal/map.js:29:13

  - util.js:16 tryCatcher
    [my-new-blog]/[bluebird]/js/release/util.js:16:23

  - nodeify.js:23 Promise.successAdapter
    [my-new-blog]/[bluebird]/js/release/nodeify.js:23:30

  - promise.js:566 Promise._settlePromise
    [my-new-blog]/[bluebird]/js/release/promise.js:566:21

from gatsby-source-strapi.

lauriejim avatar lauriejim commented on July 16, 2024

I used node 9 for my test.

from gatsby-source-strapi.

iangregsondev avatar iangregsondev commented on July 16, 2024

Ok I am trying now with node 9 - I will report back.

from gatsby-source-strapi.

iangregsondev avatar iangregsondev commented on July 16, 2024

Same problem for me,

➜  my-new-blog gatsby -version
1.9.277
➜  my-new-blog node --version
v9.11.2

and here is my gasby-config.js (removing the strapi plugin - allows me to do gatsby develop again).

module.exports = {
  siteMetadata: {
    title: `Gatsby Default Starter`,
  },
  plugins: [
    `gatsby-plugin-react-helmet`,
    {
      resolve: `gatsby-source-strapi`,
      options: {
        apiURL: `http://strapi.test-me.com`,
        contentTypes: [ // List of the Content Types you want to be able to request from Gatsby.
          `article`,
          `user`
        ]
      },
    },
  ],
}

from gatsby-source-strapi.

vepins avatar vepins commented on July 16, 2024

I'm having the same problem with the gatsby strapi tutorial.
gatsby -version 1.1.581
node --version v8.9.4

Gatsby was running just fine. Changed gatsby-config.js based on instructions and couldn't restart the server. My config file is exactly the same as @appsolutegeek's (except for apiURL: localhost).

from gatsby-source-strapi.

iangregsondev avatar iangregsondev commented on July 16, 2024

So, I installed the latest plugin as I noticed there were some PR merged in. And now it appears to work. Well, I certainly didn't get the error.

Does anyone know what was fixed ?

There was no update here, I just thought of updating to see if there was any improvement - and it seems I got lucky :-)

Would be nice to know what the problem was though.

from gatsby-source-strapi.

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.