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

Partytown unable to import into GatsbyJS template #3

Closed
ewagstaff opened this issue Sep 23, 2021 · 1 comment
Closed

Partytown unable to import into GatsbyJS template #3

ewagstaff opened this issue Sep 23, 2021 · 1 comment

Comments

@ewagstaff
Copy link

Very excited to try out this package. However I've been unable to import the React version into our GatsbyJS-based template, and also unable to use the vanilla script. I've created a sample project using the basic Gatsby starter page as a demo.

Reproduction steps:

  • Clone the project
  • npm i to install dependencies, including Partytown
  • gatsby develop to start local dev

./src/components/seo.js has import { Partytown } from '@builder.io/partytown/react' at the top, and that should throw a "Module not found" error. If you comment that out, we are including the vanilla script via React Helmet and that will throw a syntax error.

Screenshots of those errors below:
Screen Shot 2021-09-23 at 2 03 27 PM
Screen Shot 2021-09-23 at 2 03 54 PM

I am running the latest Node LTS version (v14).

@adamdbradley
Copy link
Contributor

Thanks for the repo! This helped pin point the issue, thanks

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

2 participants