didierfranc / gatsby-plugin-google-fonts

Bring Google Fonts to Gatsby https://www.gatsbyjs.org/
MIT License
88 stars 19 forks source link

am i doing something wrong? this throws an error. #1

Closed Fahad-pnw closed 7 years ago

Fahad-pnw commented 7 years ago

WebpackError: Unexpected token import

module.exports = { siteMetadata: { title: HybridCapital, }, plugins: [ gatsby-plugin-react-helmet, gatsby-plugin-sass, { resolve: gatsby-plugin-google-fonts, options: { fonts: [limelight, source sans] } }, { resolve: 'gatsby-source-filesystem', options: { path: ${__dirname}/src/pages, name: pages, } }, 'gatsby-transformer-remark' ], }

resir014 commented 7 years ago

@fahadbilal Seems like @didierfranc changed the entry point of the plugin to gatsby-ssr.js, but forgot to change the main part of the package.json!

PR coming right up.

EDIT: That's not the case, apparently. My bad. For now use v0.0.1

didierfranc commented 7 years ago

Probably es6 I'm checking that, please post your version of node and gatsby cli !

resir014 commented 7 years ago

Hey @didierfranc,

Node v8.4.0 and Gatsby CLI v1.1.6. Still the same error atm.

didierfranc commented 7 years ago

I released a new version with an es5 build it must be better 😇

@resir014 @fahadbilal tell me if it's okay 😉

resir014 commented 7 years ago

@didierfranc Aweome, it works now. Thank you!