Comments (5)
Fails | |
---|---|
🚫 |
Danger failed to run |
Error TypeError
Cannot read property 'trim' of null
TypeError: Cannot read property 'trim' of null
at Object.exports.emptybody (/app/peril-downloaded-gatsbyjs/gatsby@peril/rules/emptybody.ts:12:14)
at Object.exports.default (/app/peril-downloaded-gatsbyjs/gatsby@peril/rules/emptybody.ts:17:13)
at Object.<anonymous> (/app/node_modules/danger/distribution/runner/runners/inline.js:147:60)
at step (/app/node_modules/danger/distribution/runner/runners/inline.js:32:23)
at Object.next (/app/node_modules/danger/distribution/runner/runners/inline.js:13:53)
at /app/node_modules/danger/distribution/runner/runners/inline.js:7:71
at new Promise (<anonymous>)
at __awaiter (/app/node_modules/danger/distribution/runner/runners/inline.js:3:12)
at Object.exports.runDangerfileEnvironment (/app/node_modules/danger/distribution/runner/runners/inline.js:105:136)
at runDangerAgainstFileInline (/app/out/danger/danger_runner.js:56:37)
at process._tickCallback (internal/process/next_tick.js:68:7)
Dangerfile
7| maintainers resolve your issue.\
8| `
9|
10| export const emptybody = () => {
11| const {
----------------^
12| user: { login: username },
13| body,
14| } = danger.github.issue as any
15|
Generated by 🚫 dangerJS
from gatsby-graphql-toolkit.
I am happy to provide more information and might not be using the right terminology but the gatsby-source-craft fails to gather all the entries - it gathers all but one on two of the LIST queries.
The query gatsby-source-craft fetches, when ran through the GraphQL on my CraftCMS returns the right amount of entries, but the plugin - which uses gatsby-graphql-toolkit - fails to return all the entries.
Any suggestions ?
from gatsby-graphql-toolkit.
Please note that I removed. the "offset" and "limit" from the LIST query and fixed the issue.
from gatsby-graphql-toolkit.
Incase it helps to understand the quantities Im playing with, here's the nodes and types
CraftAPI_about_default_Entry: 1,
CraftAPI_about_founderLetter_Entry: 1,
CraftAPI_about_outcomes_Entry: 1, CraftAPI_about_process_Entry: 1,
CraftAPI_apply_apply_Entry: 1, CraftAPI_blog_blog_Entry: 1,
CraftAPI_blog_post_Entry: 211, CraftAPI_blog_postv2_Entry: 268,
CraftAPI_blog_postv3_Entry: 39, CraftAPI_breakpointData_GlobalSet:
1, CraftAPI_careerRatings_rating_Entry: 5,
CraftAPI_careers_careerPath_Entry: 6,
CraftAPI_careers_careers_Entry: 1,
CraftAPI_clientdata_default_Entry: 20,
CraftAPI_clients_clients_Entry: 1, CraftAPI_colors_css_Entry: 13,
CraftAPI_contact_contact_Entry: 1, CraftAPI_customColors_css_Entry:
10, CraftAPI_externalLinks_mvp_Entry: 478,
CraftAPI_fonts_font_Entry: 1, CraftAPI_footer_GlobalSet: 1,
CraftAPI_headshots_Asset: 4, CraftAPI_home_home_Entry: 1,
CraftAPI_images_Asset: 3395, CraftAPI_images_image_Entry: 3042,
CraftAPI_legal_default_Entry: 5, CraftAPI_lexicon_definition_Entry:
71, CraftAPI_lexicon_lexicon_Entry: 1, CraftAPI_logos_Asset: 114,
CraftAPI_navigationBar_GlobalSet: 1,
CraftAPI_onlineVideos_vimeo_Entry: 3,
CraftAPI_onlineVideos_youtube_Entry: 46,
CraftAPI_projects_mvp_Entry: 31, CraftAPI_search_search_Entry: 1,
CraftAPI_seoImages_Asset: 653, CraftAPI_seo_seoImage_Entry: 549,
CraftAPI_services_serviceOffering_Entry: 1,
CraftAPI_services_service_Entry: 4, CraftAPI_styles_style_Entry: 8,
CraftAPI_subscribe_subscribe_Entry: 1, CraftAPI_threeD_Asset: 54,
CraftAPI_threeD_mrTryOut_Entry: 23,
CraftAPI_typography_typographicSet_Entry: 18,
CraftAPI_unsubscribe_unsubscribe_Entry: 1, CraftAPI_videos_Asset:
13, CraftAPI_videos_video_Entry: 12,
CraftAPI_waysOfWorking_way_Entry: 5,
CraftAPI_workOutcomes_heroOutcome_Entry: 3,
CraftAPI_workOutcomes_textOutcome_Entry: 12,
CraftAPI_work_work_Entry: 1, Site: 1, SiteBuildMetadata: 1,
SitePage: 653, SitePlugin: 40```
from gatsby-graphql-toolkit.
Found the bug in the package I was using.
PR coming in soon for gatsby-source-craft.
from gatsby-graphql-toolkit.
Related Issues (20)
- feat: display error on 4xx/5xx http error codes HOT 4
- Stale data invalidation with delta syncing
- Add ability to map custom scalar types HOT 2
- Feat: a way to avoid certain references HOT 4
- Duplicate nodes overwrite unique nodes, resulting in missing Gatsby GraphQL nodes. HOT 1
- Invalid object Node Ids create an unclear error message HOT 1
- Sourcing non-list data HOT 1
- Nullable lists are transformed into non-nullable lists HOT 8
- gatsby 4 - cannot call `createTypes` in the `sourceNodes` API HOT 1
- Toolkit throws TypeError if query returns a non-iterable object
- GraphQL 16 compatibility HOT 2
- Cannot query field HOT 1
- success fetching Nodes, but no Gatsby nodes created. HOT 1
- Accept a function as `gatsbyTypePrefix` .
- Complains about null for non-null type HOT 1
- Fails to execute LIST_ query with NoPagination
- wagtail grapple support
- Import interfaces from source schema
- Cannot query field on type "Query" 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-graphql-toolkit.