Code Monkey home page Code Monkey logo

Comments (10)

jlengstorf avatar jlengstorf commented on June 15, 2024 1

@AbhimanyuAryan I looked at the repo, but a lot of things are missing (content, images, etc.) that cause problems for the build. At this point, I'd strongly encourage you to start with a simpler starter project. Unfortunately, I'm not able to do any further debugging on this one.

Check the docs for the Airtable source plugin — they're thorough and will walk you through setting up your own Airtable integration: https://github.com/jbolda/gatsby-source-airtable

Good luck!

from lengstorf.com.

jlengstorf avatar jlengstorf commented on June 15, 2024 1

@AbhimanyuAryan if you delete the Airtable stuff and the speaking page, you won't need to worry about it at all.

There are MDX starters that are much simpler to get up and running — my site isn't really a starter; it's just my site. 😅

Good luck!

from lengstorf.com.

jlengstorf avatar jlengstorf commented on June 15, 2024

@AbhimanyuAryan my site builds using Airtable data, which requires an API key. If you build a new site using gatsby-theme-jason-blog, it should be my site without content or custom stuff like the Airtable integration.

Alternatively, you could set up an Airtable with these two tables:

And update the gatsby-source-airtable config to match your setup.

Note that you'll need Algolia keys as well (or disable that plugin as well). See https://github.com/jlengstorf/lengstorf.com/blob/master/.env.EXAMPLE for details.

I'm going to close this, but please let me know if you have additional questions!

from lengstorf.com.

AbhimanyuAryan avatar AbhimanyuAryan commented on June 15, 2024

I hope I'm not bugging you talking too much of your time. I think I'll need more help from you. Since I have never used Airtable before

  • Created an Airtable account. Created a workspace Blog. Then I went to project tracker to create Tables
    Screen Shot 2019-03-13 at 12 09 07 PM

  • Created two tables. Imported data from your tables

  1. Events

Screen Shot 2019-03-13 at 12 31 12 PM

  1. Talks

Screen Shot 2019-03-13 at 12 30 52 PM

and then I created sharable links for them
Screen Shot 2019-03-13 at 12 31 02 PM

after adding API key in .env
AIRTABLE_API_KEY="keysadfasdfasdf"

I changed gatsby-config.js

   {
      resolve: 'gatsby-source-airtable',
      options: {
        apiKey: process.env.AIRTABLE_API_KEY,
        tables: [
          {
            // Base: https://airtable.com/shrtR5ICGdbntCsT5
            baseId: 'shrtR5ICGdbntCsT5',
            tableName: 'Events',
            tableView: 'Accepted',
            tableLinks: ['Accepted_Talk(s)'],
          },
          {
            // Base: https://airtable.com/shrKRJ0W2D16Q1hVp
            baseId: 'shrKRJ0W2D16Q1hVp',
            tableName: 'Talks',
            tableView: 'Grid view',
          }
        ]
      }
    }

but when I do gatsby build. I get this error

error Plugin gatsby-source-airtable returned an error

  Error: Could not find what you are looking for

What do you mean bgy tableLinks: ['Accepted_Talk(s)']. I have kept it same. All I did was to name my tables Events and Talks

For Events and Talks I choose these tabs and renamed them too

Screen Shot 2019-03-13 at 12 36 04 PM

from lengstorf.com.

jlengstorf avatar jlengstorf commented on June 15, 2024

No problem!

So, in Airtable, you can create "views", which are filtered or otherwise customized data views. In my Events table, I've created a view called Accepted that only shows me events where I've been accepted to speak.

That's what the tableView option is specifying. So you'll need to create that view or change it to match the name of your view.

The tableLinks field maps the Accepted Talk(s) column in the Events table to the data in the Talks table, which allows me to make nested queries (e.g. event => talk details).

You've already got the Accepted Talk(s) column, so if you update the view names to match your table it should work.

from lengstorf.com.

AbhimanyuAryan avatar AbhimanyuAryan commented on June 15, 2024

Updated the view names

Screenshot 2019-03-15 at 2 18 19 AM

Screenshot 2019-03-15 at 2 18 24 AM

I get this error

error Plugin gatsby-source-airtable returned an error


  Error: Could not find what you are looking for


(sharp:7192): GLib-CRITICAL **: 02:19:24.954: g_hash_table_lookup: assertion 'hash_table != NULL' failed
gatsby build  46.94s user 3.69s system 153% cpu 33.080 total

Screenshot 2019-03-15 at 2 20 11 AM

Screenshot 2019-03-15 at 2 20 37 AM

from lengstorf.com.

jlengstorf avatar jlengstorf commented on June 15, 2024

@AbhimanyuAryan try removing the tableLinks option and see if it starts up. At this point, without seeing the code, there’s not much more that I can do. My approach to debugging this would be to disable things one at a time until I find the thing that’s breaking, then figure out why that thing is breaking.

Good luck!

from lengstorf.com.

AbhimanyuAryan avatar AbhimanyuAryan commented on June 15, 2024

@jlengstorf here's to repo. I have even added my .env with airtable key. So you can test properly

https://github.com/ivdstudios/abhimanyuaryan.github.io

from lengstorf.com.

AbhimanyuAryan avatar AbhimanyuAryan commented on June 15, 2024

@jlengstorf but can you not add everything to your git repo. So, if I clone & fix airtable + algolia. It should just work?

from lengstorf.com.

AbhimanyuAryan avatar AbhimanyuAryan commented on June 15, 2024

I couldn't find a better mdx starter. This is the only good mdx starter

from lengstorf.com.

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.