Giter VIP home page Giter VIP logo

legacy-gatsby-plugin-netlify-cms-paths's Introduction

legacy-gatsby-plugin-netlify-cms-paths

DO NOT USE

Now part of escalade monorepo.

legacy-gatsby-plugin-netlify-cms-paths's People

Contributors

cloderic avatar hmbrg avatar kennedyrose avatar tbaustin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

legacy-gatsby-plugin-netlify-cms-paths's Issues

Convert paths recursively in nested objects

It is a common use case in Netlify CMS to have sub-objects or lists of sub-objects in Markdown frontmatter. This plugin should convert paths also in arrays, objects, arrays of objects, etc.

Working with JSON files

Can I make this plugin work with JSON files that NetlifyCMS is creating?
My JSON contains image paths, but this plugin only seems to transform frontmatter.

Field must not have a selection since type "String" has no subfields

Hi, I try to use your plugin because I have frontmatter like this:

---
cover: /content/images/sunrise.jpg
---

I have this config:
```js
plugins: [
    "gatsby-plugin-netlify-cms-paths",
    {
      resolve: "gatsby-transformer-remark",
      options: {
        plugins: [
          "gatsby-plugin-netlify-cms-paths",
        ]
     }
  }
]

But I still have the following error when I build:

Field "cover" must not have a selection since type "String" has no subfields.

Am I using your plugin the wrong way?

Thank you

Gatsby v2

Will this plugin work with gatsby v2?

GraphQL error after Schema Customization API update (Windows 10)

Description

This plugin stops working for me after updating gatsby to 2.2.0 which introduced the addition of Schema Customization API.

I've confirmed that it still works on 2.1.39.

I suspect this may be OS-related, as my colleague who runs Linux does not have the same issue. I have updated node, npm and gatsby-cli.

Steps to reproduce

I have set up a minimal demo from the default starter: https://github.com/laradevitt/my-default-starter

  1. Create a new site from the demo
  2. Run gatsby develop or gatsby build

Expected result

The field 'image' should be recognized as a file and populated with an object.

Actual result

Field is populated as a string, resulting in the following error:

 ERROR #85909  GRAPHQL

Field "image" must not have a selection since type "String" has no subfields

File: src\templates\page.js:30:15

Environment

  System:
    OS: Windows 10
    CPU: (8) x64 Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz
  Binaries:
    Yarn: 1.16.0 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
    npm: 6.10.1-next.1 - C:\Program Files\nodejs\npm.CMD
  Languages:
    Python: 3.7.2 - /c/Users/r/AppData/Local/Programs/Python/Python37/python
  Browsers:
    Edge: 44.17763.1.0
  npmPackages:
    gatsby: ^2.13.6 => 2.13.6 
    gatsby-image: ^2.2.4 => 2.2.4 
    gatsby-plugin-manifest: ^2.2.1 => 2.2.1 
    gatsby-plugin-netlify-cms-paths: ^1.2.1 => 1.2.1 
    gatsby-plugin-offline: ^2.2.1 => 2.2.1 
    gatsby-plugin-react-helmet: ^3.1.0 => 3.1.0 
    gatsby-plugin-sharp: ^2.2.3 => 2.2.3 
    gatsby-source-filesystem: ^2.1.2 => 2.1.2 
    gatsby-transformer-remark: ^2.6.1 => 2.6.1 
    gatsby-transformer-sharp: ^2.2.1 => 2.2.1 

Umbrella issue to report Schema Customization API-related bugs: gatsbyjs/gatsby#12272

Release blog post about new API including potential breaking changes: https://www.gatsbyjs.org/blog/2019-03-18-releasing-new-schema-customization/

Thanks!

MDX support

I ran into wanting to use this plugin for my MDX-based Gatsby pages and when quickly looking at the code it might be as simple as extending the node type check (focusing on frontmatter for now).

I'm happy to take a stab at a PR but wanted to check with your first for openness to such change and any issues you might already know about.

And cheers for your work so far!

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.