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

Uncaught ReferenceError: _typeof is not defined #1717

Closed
markuskoehler opened this issue Mar 8, 2017 · 2 comments
Closed

Uncaught ReferenceError: _typeof is not defined #1717

markuskoehler opened this issue Mar 8, 2017 · 2 comments

Comments

@markuskoehler
Copy link

markuskoehler commented Mar 8, 2017

A year ago I successfully used jsTree for a project, but now that I try to do it again, I always run into an "Uncaught ReferenceError: _typeof is not defined" at the end. jsTree seems to generate a blob, so I cannot look into it what's happening, I just see this error where I would expect jsTree to load new data provided via ajax call... Any thoughts on this?

EDIT: Even tried different solutions to pull data in dynamically, like wrapping jstree in an axios promise, or an angular promise, or using the built-in jquery ajax call, but everytime when I expect valid data to come back all that i receive is this reference error...

@vakata
Copy link
Owner

vakata commented Mar 8, 2017

It is a known issue with some transpilers and possibly webpack. But as the code is completely valid there is nothing I can do except wait for the issue to be fixed from the transpiler / webpack side. In the mean time set core.worker to false in your jstree config and there will be no error.

@vakata vakata closed this as completed Mar 8, 2017
@redterror
Copy link

redterror commented Jul 12, 2019

I took inspiration from mapbox/mapbox-gl-js#3422 (comment) and did the exclusion in the webpack config and that addressed the problem for me.

E.g.

exclude: /jstree/

in my babel-loader section.

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