Comments (4)
A member of the Gatsby team mentioned the fix may be similar to this issue on gatsby-plugin-loadable-components-ssr: graysonhicks/gatsby-plugin-loadable-components-ssr#46
The cause is similar
- for schema customization, I am loading the *.gql files as a template for schema definition https://github.com/Kentico/kontent-gatsby-packages/blob/gatsbyv4-upgrade/packages/gatsby-source-kontent/src/naming.ts#L133
To identify a file, I am using __dirnane
to get current folder for the loading the file content - and in build the __dirname
is being set to .cache/query-engine
I have placed the debugger to the file loading place in ~\.cache\query-engine\index.js
and when the debugger was hit I haven't found template.items.schema.gql
file in the issue .cache
folder.
I have reached out to Gatsby devs to get the best practice for the fix.
from gatsby-packages.
A member of the Gatsby team mentioned the fix may be similar to this issue on gatsby-plugin-loadable-components-ssr: graysonhicks/gatsby-plugin-loadable-components-ssr#46
from gatsby-packages.
Gatsby did not respond yet, but I have tried to rewrite templated files to TS modules and tested it and it looks it works fine.
I have also tried it on your repo and seems fine.
https://www.npmjs.com/package/@kentico/gatsby-source-kontent/v/8.0.0-beta.2
If it is fixed, please close this issue.
from gatsby-packages.
The issue has been resolved and released version 8.0.0-beta.2.
Gatsby team confirmed the fix was correct. It has been also published on the migration guides:
- https://www.gatsbyjs.com/docs/reference/release-notes/migrating-source-plugin-from-v3-to-v4/#the-old-way-4
- https://www.gatsbyjs.com/docs/reference/release-notes/migrating-from-v3-to-v4/#bundling-external-files
from gatsby-packages.
Related Issues (20)
- Gatsby Kontent Components - resolveLink in RichTextElement not getting called HOT 6
- ResolveDomNode for resolving links does not work correctly HOT 2
- Kontent workflow transition generates a preview build. HOT 11
- Image Flickers when conditionally rendering an image using React Context state HOT 13
- Type Error when using TypeScript HOT 7
- Publish webhook body versus Unpublish webhook body. HOT 11
- Allow Gatsby Source Kontent Plugin to filter by collection HOT 18
- Showcase Gatsby SSR and DSG HOT 5
- Extend RichText resolver by component flag HOT 23
- Content backups are out of date
- Use new Netlify Gatsby plugin for examples and development site
- Replace Lerna with alternative HOT 2
- Export getGatsbyImageData
- [Spike] Make kontent assets as individual nodes
- Support React 18 in gatsby-components
- Support for content sync from gatsby
- Some observations from profiling Intralox HOT 1
- Asset renditions are not available in the Gatsby data layer HOT 14
- Build and Netlify deployments failing 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-packages.