Skip to content
This repository was archived by the owner on Apr 11, 2022. It is now read-only.
This repository was archived by the owner on Apr 11, 2022. It is now read-only.

Blank project gets "Path must be a string, Received undefined" #759

Open
@Stylesoftware

Description

@Stylesoftware

PhoneGap CLI, node & npm versions

Phonegap CLI v 7.1.1
Cordova v 8.0.0
Node v 8.9.4
NPM v 5.6.0
OS Win7

Expected Behaviour

Open browser, connect to ip:3000
no error in CLI

Actual Behaviour

'Type' (error as shown below) in CLI as soon as browser connects

Steps to Reproduce

prompt:>phonegap create wmt4 --name wmt4 --template blank
prompt:>cd wmt4
prompt:>phonegap serve
action: connect to ip:3000 using chrome

Sample Code that illustrates the problem

No code changes; Blank template

Reinstall, no change in error:

npm -g remove cordova
npm -g remove phonegap
npm cache clean --force
npm install phonegap
npm install cordova

Error messages

[phonegap] starting app server...
[phonegap] listening on 192.168.0.110:3000
[phonegap]
[phonegap] ctrl-c to stop the server
[phonegap]
[phonegap] 200 /socket.io/?EIO=3&transport=polling&t=M4YRQGy
[phonegap] 200 /socket.io/?EIO=3&transport=polling&t=M4YRQL6&sid=XjX5uSLu3TF9_R8vAAAA
[phonegap] 200 /socket.io/?EIO=3&transport=polling&t=M4YRQLM&sid=XjX5uSLu3TF9_R8vAAAA
[phonegap] 200 /
[phonegap] 304 /socket.io/socket.io.js
TypeError: Path must be a string. Received undefined
at assertPath (path.js:28:11)
at Object.join (path.js:499:7)
at Object.handle (C:\Users\xxxxx\AppData\Roaming\npm\node_modules\phonegap\node_modules\connect-phonegap\lib\middleware\cordova\cordova.
js:21:33)
at next (C:\Users\xxxxx\AppData\Roaming\npm\node_modules\phonegap\node_modules\connect\lib\proto.js:174:15)
at SendStream.error (C:\Users\xxxxx\AppData\Roaming\npm\node_modules\phonegap\node_modules\serve-static\index.js:120:7)
at emitOne (events.js:116:13)
at SendStream.emit (events.js:211:7)
at SendStream.error (C:\Users\xxxxx\AppData\Roaming\npm\node_modules\phonegap\node_modules\send\index.js:245:17)
at SendStream.onStatError (C:\Users\xxxxx\AppData\Roaming\npm\node_modules\phonegap\node_modules\send\index.js:356:12)
at onstat (C:\Users\xxxxx\AppData\Roaming\npm\node_modules\phonegap\node_modules\send\index.js:621:26)
[phonegap] 500 /cordova.js
[phonegap] 200 /socket.io/?EIO=3&transport=polling&t=M4YRQYf
[phonegap] 200 /socket.io/?EIO=3&transport=polling&t=M4YRQa4&sid=lbTSniYEv8iaQafcAAAB
[phonegap] 200 /socket.io/?EIO=3&transport=polling&t=M4YRQaK&sid=lbTSniYEv8iaQafcAAAB

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions