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
Version 0.9.0 doesn't work with minimal example #161
Comments
+1 |
1 similar comment
+1 |
The problem seems to be that it's not compatible with connect 3 (static is now serve-static), The dependency is correct in the package.json, but since express was already in my project in version 3, npm did not install it for grunt-contrib-connect i guess. |
+1 |
+1 anyone solved this? |
fixed in 0.11.0 |
@vladikoff v0.11.2 still has this issue.
$ grunt serve Running "clean:server" (clean) task
Running "wiredep:app" (wiredep) task Running "wiredep:test" (wiredep) task Running "concurrent:server" (concurrent) task
Running "autoprefixer:server" (autoprefixer) task Running "connect:livereload" (connect) task Aborted due to warnings. Execution Time (2015-09-15 01:11:49 UTC) |
I have this exact problem as well, and I've now tested it on all the 0.11.x versions. The serve-static issue seems to be resolved as of 0.11.13 (and stays that way all the way through 0.12.x), but then I get:
I can't figure out what's causing this either. Anyone solved a |
The project generated from yo 1.4.8 use grunt-contrib-connect@0.9.0, import dependency to connect@2.30.2. This version connect support connect().static() method. In the Gruntfile.js, yo configure a middleware for connect:livereload, in which static() method was used. |
Hi Guys. I was having the same problem, and I found a solution by doing the following. Even though I kow its not the right way of doing it. I was pressed for time. So I down graded Package.json
Gruntfile.jsmodule.exports = function(grunt) {
grunt.initConfig({
//My Tasks
});
grunt.registerTask('serve', 'Compile then start a connect web server', function (target) {
grunt.task.run([
'wiredep',
'connect:livereload',
'watch'
]);
});
}; Now I can run my |
Tried creating a simple grunt-contrib-connect example and having errors.
Check this sample project: https://github.com/hugocorbucci/grunt-connect-example
Works for 0.8.0 but breaks for 0.9.0 with the following error:
The text was updated successfully, but these errors were encountered: