You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I am seeing below error when I run gulp connect.
Any help will be really appreciated.
Thanks,
Shwetha
10:38:25] Starting 'connect'...
[10:38:25] 'connect' errored after 6.57 ms
[10:38:25] TypeError: connect.static is not a function
at /rmbs/apps/node_modules/gulp-connect/index.js:158:44
at Array.forEach (native)
at ConnectApp.handlers (/apps/node_modules/gulp-connect/index.js:157:17)
at ConnectApp.run (/apps/node_modules/gulp-connect/index.js:55:10)
at new ConnectApp (/apps/node_modules/gulp-connect/index.js:50:10)
at Object.module.exports.server (/apps/node_modules/gulp-connect/index.js:219:11)
The text was updated successfully, but these errors were encountered:
Hi, I just discovered there was breaking changes on connect version 3.6.6, so, there's no more connect.static(..).
You should use serve-static instead of connect.static().
See the documentation from connect and serve-static.
Here is an example of how I solved this problem:
Hi,
I am seeing below error when I run gulp connect.
Any help will be really appreciated.
Thanks,
Shwetha
10:38:25] Starting 'connect'...
[10:38:25] 'connect' errored after 6.57 ms
[10:38:25] TypeError: connect.static is not a function
at /rmbs/apps/node_modules/gulp-connect/index.js:158:44
at Array.forEach (native)
at ConnectApp.handlers (/apps/node_modules/gulp-connect/index.js:157:17)
at ConnectApp.run (/apps/node_modules/gulp-connect/index.js:55:10)
at new ConnectApp (/apps/node_modules/gulp-connect/index.js:50:10)
at Object.module.exports.server (/apps/node_modules/gulp-connect/index.js:219:11)
The text was updated successfully, but these errors were encountered: