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

Not working - Uncaught SyntaxError: Unexpected token '<' (at script.js:1:1) #28

Closed
arimendelow opened this issue Jan 9, 2023 · 2 comments

Comments

@arimendelow
Copy link

Hi!

I've just integrated Vercel Analytics to my RedwoodJS app via the <Analytics /> component.

An hour later, and with no luck on debugging, the analytics page is stuck at this:
Screenshot 2023-01-08 at 9 41 30 PM

The only "error" I've been able to find is that script.js throws: Uncaught SyntaxError: Unexpected token '<':
Screenshot 2023-01-08 at 9 39 52 PM
Screenshot 2023-01-08 at 9 42 27 PM

Any ideas why this is happening? You can see this live by visiting Spoonjoy.app.

Thanks!

@timolins
Copy link
Member

timolins commented Jan 9, 2023

Hi Ari!

It looks like you enabled Web Vitals instead of Audiences. Can you try switching over to the Audiences tab and enabling it there? After Audiences is enabled, you can re-deploy your project which should fix this issue.

Screenshot 2023-01-09 at 09 36 05

We know this can be a bit confusing right now, and we are working hard to make this more intuitive in the future. 🤞

@arimendelow
Copy link
Author

Ha oh!! Yeah, very confusing UI :) the popup telling you to set up looks as though it's for both!

Thanks for the quick response!

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