-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
RequireJS mismatched define() error #1843
Comments
Closed by #1844 |
For some reason I'm getting
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
RequireJS attempts to name anonymous modules by path used to reference them. If you attempt to repackage video.js up in a require-friendly module along with some other code, however, it doesn't have a path to base naming off of and gets confused.
To be a little more concrete, imagine you create a player widget that uses video.js internally. You might setup your javascript to look something like this:
I can think of a couple ways to avoid this situation:
define('videojs', [], function() { ... })
The text was updated successfully, but these errors were encountered: