Comments (12)
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
- ...
- api
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.
I follow the tuto and I don't get any errors...
from gatsby-source-strapi.
Interesting, I'll give it another shot sometime. Thanks!
from gatsby-source-strapi.
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.
@appsolutegeek That's interesting, maybe it's an issue with Node 10.
@lauriejim what version of Node where you using?
from gatsby-source-strapi.
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.
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.
I used node 9 for my test.
from gatsby-source-strapi.
Ok I am trying now with node 9 - I will report back.
from gatsby-source-strapi.
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.
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.
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)
- Gatsby develop hangs for minutes on "Source and Transform Nodes" HOT 1
- Gatsby Source not fetching all locales date throwing an error
- Issue generating links for nested collection routes HOT 1
- Plugin doesn't update data when content on admin changes HOT 2
- Error: EPERM: operation not permitted, lstat HOT 2
- "Rich text" field makes a ERROR #11321 PLUGIN HOT 1
- How to fetch custom API HOT 4
- image from strapi component doesn't show up in graphql HOT 3
- Single Types don't update on rebuild if multiple locales exist HOT 1
- Missing images from richtext field HOT 1
- Image Processing in HTML code HOT 2
- Plugin is not pulling data from Strapi when there is a timestamp on the cache. HOT 1
- ERROR #11321 PLUGIN "gatsby-source-strapi" threw an error while running the sourceNodes lifecycle: connect ECONNREFUSED ::1:1337 HOT 5
- Unable to make optional fileds. HOT 4
- CreateTypes Camel case vs. snake case HOT 1
- Is this plugin still maintained? HOT 31
- Getting "Unknown type" for the starter project HOT 2
- Cannot retrieve sub-components of components in graphql? HOT 13
- GatsbyImageData in dynamic zones HOT 2
- Pull plugin comments data into Gatsby HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gatsby-source-strapi.