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
Running the latest phonegap CLI on latest node on OS X, I see this in my server logs:
TypeError: Path must be a string. Received undefined
at assertPath (path.js:7:11)
at Object.join (path.js:1213:7)
at Object.handle (/usr/local/lib/node_modules/phonegap/node_modules/connect-phonegap/lib/middleware/cordova/cordova_plugins.js:18:33)
at next (/usr/local/lib/node_modules/phonegap/node_modules/connect/lib/proto.js:193:15)
at Object.handle (/usr/local/lib/node_modules/phonegap/node_modules/connect-phonegap/lib/middleware/cordova/cordova.js:33:13)
at next (/usr/local/lib/node_modules/phonegap/node_modules/connect/lib/proto.js:193:15)
at resume (/usr/local/lib/node_modules/phonegap/node_modules/connect/lib/middleware/static.js:65:7)
at SendStream.error (/usr/local/lib/node_modules/phonegap/node_modules/connect/lib/middleware/static.js:80:37)
at emitOne (events.js:96:13)
at SendStream.emit (events.js:188:7)
$ phonegap -v
6.3.0
$ node -v
v6.4.0
The text was updated successfully, but these errors were encountered:
I installed the PhoneGap desktop app, created a new project with it, ran the server from the desktop app, tried to connect with the iOS app, failed a few times, then decided to try running the server with the CLI instead. That didn't work either, but quitting the iOS app and restarting it seemed to do the trick.
I made no modifications to the generated project before running the server.
Hope that helps. Let me know if you need more info.
I can reproduce this every time with the latest phonegap-cli, as long as the project you are creating does not include plugins. Thus why the stack trace points to cordova-plugins.js middleware causing this error:
Repro steps - the key is to provide the blank template (so you get no cordova plugins):
$ phonegap create pathtest --template blank
$ cd pathtest
$ phonegap -d serve
$ # wait until the serve is listening, then load up the URL in your browser
filmaj
changed the title
TypeError: Path must be a string. Received undefined
Path-related exception when used with a plugin-less phonegap app
Apr 24, 2017
Running the latest phonegap CLI on latest node on OS X, I see this in my server logs:
The text was updated successfully, but these errors were encountered: