ryanditjia / gatsby-plugin-crisp-chat

Gatsby plugin to add Crisp Livechat to your site
MIT License
17 stars 5 forks source link

Trying to add in but getting error #10

Closed Palashio closed 3 years ago

Palashio commented 3 years ago

So I tried adding the plugin into my gatsby-config.js. Here's what it looks like right now:

module.exports = {
  siteMetadata: {
    title: `Name`
  },
  plugins: [
    {
      resolve: 'gatsby-plugin-crisp-chat',
      options: {
        websiteId: 'my_id',
        enableDuringDevelop: false, // Optional. Disables Crisp Chat during gatsby develop. Defaults to true.
        defer: true, // Optional. Sets the Crisp loading script to defer instead of async. Defaults to false.
        enableImprovedAccessibility: false // Optional. Sets aria-label attribute on pop-up icon for screen readers. Defaults to true.
      },
    }
    `gatsby-plugin-react-helmet`,
    `gatsby-plugin-sass`,
    `gatsby-plugin-styled-components`,
    `gatsby-plugin-sharp`,
    `gatsby-transformer-sharp`,
    `gatsby-transformer-remark`,
  ],
};

But i'm getting a TypeError: {(intermediate value)(intermediate value)} is not a function

Palashio commented 3 years ago

Need this fixed ASAP! Launching in a couple of days.