Comments (8)
Thank you for that insight.
This should be easily fixed as I was only trying to make a more informative logging experience. In this casePath: undefinded
. So it is not crucial to make the plugin work, I'll let you know when this is fixed.
from gatsby-remark-oembed.
I managed to create a contentful space to test it out and it works fine.
from gatsby-remark-oembed.
Thank you for letting us know, do you have a public repo I could look at?
from gatsby-remark-oembed.
Nudge @patroza?
from gatsby-remark-oembed.
hi @raae sorry for late reply; don't have the project public right now, but what I found so far is that it probably doesnt support the markdown content to live on contentful instead of on disk?
ie I use "gatsby-source-contentful"
not -filesystem
from gatsby-remark-oembed.
So it looks like contentful based remarked fields have no File
type field, while gatsby-source-filesystem
expects it to exist when you call createFilePath
.
if in gatsby-source-filesystem
I replace the return fileNode
statement with:
return fileNode.internal.type !== 'File' ? undefined : fileNode
the app works, and the oembed works. but oembed logs:
info gatsby-remark-oembed: Successfull embeds: 1 | Path: undefined
.
from gatsby-remark-oembed.
I am now using the markdown node's id, instead of trying to get the path.
It would be great if you (@patroza) could test the solution by using npm install raae/gatsby-remark-oembed#logging-bug-#73
. This will install the branch with the fix.
from gatsby-remark-oembed.
Great to hear @raae, sorry for late response, missed notification somehow
from gatsby-remark-oembed.
Related Issues (20)
- Setup mdx example site to Netlify HOT 1
- Fix format command in gatsby-remark-oembed package folder HOT 2
- Add Instagram hack to get around access token requirement? HOT 6
- Something is up with Twitch embeds HOT 8
- Move Instagram throw error when finding an instagram embed HOT 2
- New release HOT 1
- Add pull request template
- Add mdx support documentation HOT 1
- Logo HOT 1
- Improve test coverage for tranformsLinkNodeToOembedNode.js
- Improve performance in `getProviderEndpointForLinkUrl` HOT 1
- Move to GitHub actions form Travis? HOT 1
- Use without Gatsby HOT 11
- Add pluginOptionsSchema
- Create a new release HOT 8
- trim option should exclude <pre> HOT 2
- Twitter Embed - Missing blockquote.twitter-tweet HOT 2
- Transforms links that are list items HOT 2
- Transforms links that are image links HOT 1
- The automated release is failing 🚨
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-remark-oembed.