Code Monkey home page Code Monkey logo

Comments (8)

raae avatar raae commented on May 16, 2024 1

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.

raae avatar raae commented on May 16, 2024 1

I managed to create a contentful space to test it out and it works fine.

from gatsby-remark-oembed.

raae avatar raae commented on May 16, 2024

Thank you for letting us know, do you have a public repo I could look at?

from gatsby-remark-oembed.

raae avatar raae commented on May 16, 2024

Nudge @patroza?

from gatsby-remark-oembed.

patroza avatar patroza commented on May 16, 2024

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.

patroza avatar patroza commented on May 16, 2024

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.

raae avatar raae commented on May 16, 2024

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.

patroza avatar patroza commented on May 16, 2024

Great to hear @raae, sorry for late response, missed notification somehow

from gatsby-remark-oembed.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.