-
Notifications
You must be signed in to change notification settings - Fork 176
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
Cannot read property 'parse' of undefined (at line 29 of blanket.js) #541
Comments
I think you should built the project first. Follow the steps in Roll your own section. |
I don't think you are right. First of all, that file is a Second, the same error (albeit at a different line number) happens if using the minified file in the same directory – exactly what one is suggested to do by the instruction in http://blanketjs.org/. Finally, the error does not happen using https://raw.githubusercontent.com/alex-seville/blanket/89266afe70ea733592f5d51f213657d98e19fc0a/dist/qunit/blanket.js (without building). So it seems that, probably by mistake, the wrong (unbuilt) file has been committed to the repo (in the |
Yes, the file blanket.js(65kb) in /dist/qunit is unbuilt. It became 200kb after I built it and that's why I suggest you should built it by yourself. |
I met the same issue. The files is /dist/qunit should be updated. |
@warpig9 I can absolutely agree that committing a file that is built from other files in the repo is quite a bad idea (given its size, but not only); it is a common best practice not to do so, reported even on some GitHub guide http://kbroman.org/github_tutorial/pages/routine.html "[d]on’t include files that are derived from other files in the repository". You should also consider that:
So I think you either to:
|
I just ran into this as well. Installing through npm has a similar problem. I had to clone the repo and rebuild the dist directory as well in order to get past it. |
Same problem here. You should either keep your dist up-to date and built, or remove/rename it. You know, we users are lazy. So lazy you should treat me as dumb. Because we have our own host of dependencies, and want to focus on our own project. So please provide ready-to-use package (in our case that one blanket.min.js is okay). |
Backed out of 1.2.0 due to this issue. Any fix on the horizon? |
@stefaneg as you see in #541 (comment) @warpig9 does not consider this a bug :( so no fix will be ever provided… |
Either the documentation has to change or the code distribution. While they are not in sync, this is definitely a bug. I would suggest that the right thing to do is to publish a built blanket.js in a npm package, and update the docs accordingly. |
+1 for @mapio arguments. That is really disturbing when you follow the docs and it doesn't work as expected. The docs should mention that or the file should be updated. |
Serving the
test
dir and opening/backbone-koans/
in the browser result in the console reporting the error that is the subject of this issue. The culprit seems to beblanket/dist/qunit/blanket.js
Line 29 in 11f1a92
a missing library.
The text was updated successfully, but these errors were encountered: