-
Notifications
You must be signed in to change notification settings - Fork 2
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Error on javascript browser console. #3
Comments
Sorry but it's not yet solved with the last commit. The issue remains and it happens randomly when refreshing the page. Give you 3 different outputs I get from console, running localhost:
Can this be related to the order the scripts are being loaded? I feel a bit lost in here, since this is the first time I work with grunt... |
We discussed this issue once in issue tracker of docpad livereload plugin, please find it and see if there is a working solution. I'll check this later as well. Sent from my BlackBerry® smartphone from orange -----Original Message----- Sorry but it's not yet solved with the last commit. The issue remains and it happens randomly, when refreshing the page. Give you 3 different outputs I get from console, running localhost:
Can this be related to the order the scripts are being loaded? I feel a bit lost in here, since this is the first time I work with grunt... Reply to this email directly or view it on GitHub: |
…ylukin#3 . Add to gitignore bower components folder.
Hi @sergeylukin I was looking into that as well =) I think it works just to load the socket.io into the template. I've added the script tag inside a build block, this way it is override when compiling the production. I'll make a new pull request, take a look into that, as I'm not sure if it breaks anything. At least the error in console is gone ;) Thank you. |
Production doesn't need it and it doesn't get there which is OK. However in development environment, just loading socket.io before requirejs only works in most cases but not always.. Also, you don't have to explicitly insert script tag, it's enough to just move Btw @balupton is working on replacing socket.io solution docpad/docpad-plugin-livereload#6 so I don't think we should waste too much time on this issue for now |
On my end works great so far, thanks @digitaldesigndj !! |
Oh, and yes, if you're testing on existing project, please run following after merging in commit 73d04c4
|
Patched live-reload module name resolution. Should be good now. |
When I run the app I get a error on console, apparently related to require.
Uncaught Error: Mismatched anonymous define() module: function () { return io; } http://requirejs.org/docs/errors.html#mismatch require.js:8
After this the main.js code don't get ejecuted and the app is not initializated.
For all I can see at the moment seams related to this requirejs error.
The text was updated successfully, but these errors were encountered: