Coder Social home page Coder Social logo

Comments (3)

YuHoYe avatar YuHoYe commented on May 30, 2024

希望能有类似书单的影单功能。我尝试了一下,但是遇到个Bug。
这个Bug应该在书单中也存在。如下:
当Notion里的书单中有很多相同的自定义的Property,Blog上并没有用到,会出现编译错误:

1:27:44 PM: error gatsby-node.js returned an error
1:27:44 PM: 
1:27:44 PM:   TypeError: Cannot read property '0' of undefined
1:27:44 PM:   
1:27:44 PM:   - api.js:106 Object.entries.map.item
1:27:44 PM:     /opt/build/repo/src/notion/api.js:106:64
1:27:44 PM:   
1:27:44 PM:   - Array.map
1:27:44 PM:   
1:27:44 PM:   - api.js:87 blockIds.map.blockId
1:27:44 PM:     /opt/build/repo/src/notion/api.js:87:50
1:27:44 PM:   
1:27:44 PM:   - Array.map
1:27:44 PM:   
1:27:44 PM:   - api.js:82 Object.queryCollection
1:27:44 PM:     /opt/build/repo/src/notion/api.js:82:14
1:27:44 PM:   
1:27:44 PM:   - next_tick.js:68 process._tickCallback
1:27:44 PM:     internal/process/next_tick.js:68:7
1:27:44 PM:   
1:27:44 PM: 
1:27:45 PM: error Command failed with exit code 1.

在删除了多余的自定义的Property后,可以编译,但是会有warning:

2:15:46 PM: warning Multiple node fields resolve to the same GraphQL field `Book._x` - [`作者`, `地区`]. Gatsby will use `作者`.
2:15:46 PM: warning Multiple node fields resolve to the same GraphQL field `Movie._x` - [`上映`, `属性`]. Gatsby will use `上映`.

from gine-blog.

wilfzhao avatar wilfzhao commented on May 30, 2024

非常感谢大佬!
现在的配置文档,对于非IT人员来讲的话,看起来有点困难,也就是说有点地方写的还不够详细。

from gine-blog.

mayneyao avatar mayneyao commented on May 30, 2024

@YuHoYe @wilfzhao 我建了个微信交流群,大家感兴趣的话可以加一下。

from gine-blog.

Related Issues (18)

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.