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

Resolve: Uncaught TypeError: Cannot read property '_' of undefined #2176

Closed
wants to merge 2 commits into from
Closed

Conversation

JBerendes
Copy link

resolve: Uncaught TypeError: Cannot read property '_' of undefined

resolve: Uncaught TypeError: Cannot read property '_' of undefined
if needed whitespace
@JBerendes JBerendes changed the title Update underscore.js resolve: Uncaught TypeError: Cannot read property '_' of undefined May 13, 2015
@JBerendes JBerendes changed the title resolve: Uncaught TypeError: Cannot read property '_' of undefined Resolve: Uncaught TypeError: Cannot read property '_' of undefined May 13, 2015
@jridgewell
Copy link
Collaborator

Hi @JBerendes, this PR isn't going to fix a read property of undefined error. How are you including underscore?

@jridgewell jridgewell closed this May 13, 2015
@JBerendes
Copy link
Author

Using React 0.13.3 with Browserify and Babelify (ES6+ to ES5 friendly conversion)
The code is combined into one file for a static documentation site.
in the source of one my components is the line
var _ = require('underscore');

When opening the app Chrome then throws the error as described.

@jridgewell
Copy link
Collaborator

Ah, dupe of #2152 then. Right now, underscore isn't compatible with ES6 modules.

@JBerendes
Copy link
Author

Alright I'll come up with a different solution for what I need. Thanks.

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

Successfully merging this pull request may close these issues.

None yet

2 participants