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

JS client errors #2042

Closed
clehner opened this issue May 14, 2016 · 9 comments
Closed

JS client errors #2042

clehner opened this issue May 14, 2016 · 9 comments

Comments

@clehner
Copy link

clehner commented May 14, 2016

On page load I get errors in the console, e.g.:

[Error] TypeError: SyntheticEvent.augmentClass is not a function. (In 'SyntheticEvent.augmentClass(SyntheticCompositionEvent, CompositionEventInterface)', 'SyntheticEvent.augmentClass' is undefined)
[Error] TypeError: undefined is not an object (anonymous function)
[Error] ReferenceError: Can't find variable: $ Global Code (localhost:1194)
[Error] ReferenceError: Can't find variable: $ Global Code (localhost:1204)
[Error] ReferenceError: Can't find variable: $ Global Code (localhost:1208)

I have followed the instructions in the README. Assets are built, but looks like jQuery is
missing or something. Advice?

Debian testing, ruby 2.3.1, 86eed98, env=production

@rap1ds
Copy link
Member

rap1ds commented May 14, 2016

I have seen something similar in development environment, but never in production env. This might have something to do with React on Rails (or not... just guessing).

In development environment restarting the server fixes the issue.

@Gnito @mporkola @kpuputti any ideas?

@clehner
Copy link
Author

clehner commented May 19, 2016

I'd like to try resetting some state or doing something to fix this behavior but am not sure what to do.

The errors do not appear in Firefox or Chromium, but do in the Webkit-based browsers that I have tried.

@kpuputti
Copy link
Contributor

kpuputti commented Jun 3, 2016

@clehner Are you still seeing these errors?

@clehner
Copy link
Author

clehner commented Jun 3, 2016

@kpuputti I still see the errors in Webkit-based browsers (epiphany, surf). I have been working around it by using Chromium instead.

@jgillich
Copy link

jgillich commented Jun 6, 2016

I'm also getting this excat error in my own React app (I don't use sharetribe). The React TodoMVC works fine in Epiphany, so this might or might not be an upstream issue..

@kpuputti
Copy link
Contributor

I think jQuery missing is just a result of an error happening before jQuery could be downloaded.

SyntheticEvent is part of React's event system and we have the latest React updated in the master branch. Could you test if you still get this error with master? Thanks.

@mporkola
Copy link
Contributor

Closed as inactive.

@oksurf
Copy link

oksurf commented Feb 13, 2017

I seem to only git it in a WebKit browser, Firefox and Chrome are fine.

@imsurinder90
Copy link

I get below error:

TypeError: SyntheticEvent.call is not a function.

when the React based app is run using Webkit browser and is built(webpack) with the non-production mode.
I get no error when the app is run in production(flag -p) mode.

However, I have opened an issue in React.

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

No branches or pull requests

7 participants