Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webpack error when using Gatsby #90

Open
willmcl opened this issue Aug 6, 2020 · 2 comments
Open

Webpack error when using Gatsby #90

willmcl opened this issue Aug 6, 2020 · 2 comments

Comments

@willmcl
Copy link

willmcl commented Aug 6, 2020

I am using this with Gatsby and when running gatsby develop I get the following error:

 ERROR #98123  WEBPACK

Generating development JavaScript bundle failed

Unexpected token (13:19)

File: node_modules/react-typist/src/Typist.jsx:13:19

Below are the dependencies from my package.json file. Any help would be great.

"dependencies": {
    "@contentful/rich-text-react-renderer": "^14.1.1",
    "babel-plugin-styled-components": "^1.11.1",
    "classnames": "^2.2.6",
    "gatsby": "^2.24.30",
    "gatsby-image": "^2.4.14",
    "gatsby-plugin-layout": "^1.3.10",
    "gatsby-plugin-manifest": "^2.4.22",
    "gatsby-plugin-offline": "^3.2.22",
    "gatsby-plugin-react-helmet": "^3.3.10",
    "gatsby-plugin-sharp": "^2.6.25",
    "gatsby-plugin-sitemap": "^2.4.11",
    "gatsby-plugin-styled-components": "^3.3.10",
    "gatsby-source-contentful": "^2.3.35",
    "gatsby-source-filesystem": "^2.3.24",
    "gatsby-transformer-remark": "^2.8.28",
    "gatsby-transformer-sharp": "^2.5.12",
    "moment": "^2.27.0",
    "prop-types": "^15.7.2",
    "react": "^16.13.1",
    "react-dom": "^16.13.1",
    "react-helmet": "^6.1.0",
    "react-transition-group": "^4.4.1",
    "react-typist": "^2.0.5",
    "showdown": "^1.9.1",
    "styled-components": "^5.1.1"
  },
@cxspxr
Copy link
Contributor

cxspxr commented Aug 10, 2020

nothing like that for me
using it with gatsby and develop works fine, same with build
try to create empty gatsby project with default starter and then include typist

@AyrennC
Copy link

AyrennC commented Dec 15, 2020

I encountered the same issue, turn out I was importing from the source directly.
Changing import Typist from 'react-typist/src/Typist' to import Typist from 'react-typist' should fix the error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants