TypeError: Cannot read property 'split' of undefined
See original GitHub issueTypeError: Cannot read property 'split' of undefined
at Object.livereload [as handle] (/home/michael-heuberger/code/videomail-client/node_modules/connect-livereload/index.js:91:49)
at next (/home/michael-heuberger/code/videomail-client/node_modules/connect/lib/proto.js:174:15)
at Function.app.handle (/home/michael-heuberger/code/videomail-client/node_modules/connect/lib/proto.js:182:3)
at Http2SecureServer.app (/home/michael-heuberger/code/videomail-client/node_modules/connect/lib/connect.js:67:37)
at emitTwo (events.js:131:20)
at Http2SecureServer.emit (events.js:214:7)
at Http2SecureServer.onServerStream (internal/http2/compat.js:710:10)
at emitMany (events.js:147:13)
at Http2SecureServer.emit (events.js:224:7)
at ServerHttp2Session.sessionOnStream (internal/http2/core.js:2304:17)
Using “gulp-connect”: “5.2.0” here
Issue Analytics
- State:
- Created 6 years ago
- Comments:10
Top Results From Across the Web
How to prevent cannot read property split of undefined
This error is a TypeError , and it occurs when calling a method, operand, or argument on the wrong data type, or when...
Read more >How to Prevent cannot read property split of ... - Gopi Gorantala
The "cannot read property 'split' of undefined" error occurs when trying to call split() method on a variable that stores an undefined value....
Read more >Cannot Read Property 'split' of Undefined - freeCodeCamp
it will throw the TypeError: Cannot read property 'split' of undefined error. The split method. When split is called on a string, it...
Read more >Uncaught TypeError: Cannot read property 'split' of undefined
Your question answers itself ;) If og_date contains the date, it's probably a string, so og_date.value is undefined.
Read more >TypeError: Cannot read property 'split' of undefined - JavaScript
So the argument word is coming in as undefined and therefore you can't run split() on it. You can either make sure it...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This is likely because of lack of http2 support, where the request sends authority header instead of host, the short term solution is to use up to node 8.1.2 and to uninstall the http2 module which causes gulp-connect to favour it, actual solution is to support http2 by pulling from the authority header instead of host
Tried to enable https and got this error. Using node@11.10.1, http2@3.3.7 (even though it’s marked deprecated).