porkloin / drupal-8-gatsby Goto Github PK
View Code? Open in Web Editor NEWA step-by-step repo for my intro to Drupal 8/Gatsby.js tutorial
License: MIT License
A step-by-step repo for my intro to Drupal 8/Gatsby.js tutorial
License: MIT License
I hope you do not mind these little nit-picks. I would not have noticed them if I had not followed your post closely, and I would not bother asking you to fix them if I did not think that the post is worth the effort.
import
the BlogTeaser component, you use a CamelCase filename, which is not consistent with the convention for other components.DangerouslySetInnerHTML
, but the code snippet uses dangerouslySetInnerHTML
.npm install transliteration --save
.Following your tutorial, I simplified a little:
composer require -o drupal/jsonapi_extras
...
- Installing justinrainbow/json-schema (5.2.7): Loading from cache
> Drupal\Core\Composer\Composer::vendorTestCodeCleanup
- Installing e0ipso/shaper (1.2.2): Downloading (100%)
> Drupal\Core\Composer\Composer::vendorTestCodeCleanup
- Installing drupal/jsonapi (1.23.0): Downloading (100%)
> Drupal\Core\Composer\Composer::vendorTestCodeCleanup
- Installing drupal/jsonapi_extras (2.11.0): Downloading (100%)
> Drupal\Core\Composer\Composer::vendorTestCodeCleanup
...
I got these errors when I tried to restart Gatsby:
gatsby develop
...
⠂ source and transform nodesStarting to fetch data from Drupal
⠈ source and transform nodesFailed to fetch http://drupalviews.lndo.site/jsonapi/language_content_settings/language_content_settings Request failed with status code 500
undefined
error Plugin gatsby-source-drupal returned an error
Error: Request failed with status code 500
...
Switching to my Drupal site (d
is an alias for lando drush
):
d ws 156
ID : 156
Date : 25/Nov 13:51
Type : php
Severity : error
Message : Error: Call to a member function get() on null in Drupal\jsonapi_extras\ResourceType\ConfigurableResourceType->includeCount() (line 118 of /app/modules/contrib/jsonapi_extras/src/ResourceType/ConfigurableResourceType.php)
(stack trace omitted).
It seems to be related to this bug: Update to 2.11 no work.
I downgraded jsonapi_extra
:
composer require -o drupal/jsonapi_extras:2.10.0
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.