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
at new Api (/home/jack/ws/cordova/001/ct3/node_modules/cordova-android/lib/Api.js:65:30)
at patchTargetPlatform (/home/jack/ws/cordova/001/ct3/plugins/nodejs-mobile-cordova/install/hooks/both/after-prepare-patch-npm-packages.js:57:29)
class Api {
constructor(platform, platformRootDir, events) {
this.platform = PLATFORM;
this.root = platformRootDir;
setupEvents(events);
const appMain = path.join(this.root, 'app', 'src', 'main'); //line 65: this.root is needed, which means the 2nd parameter is needed.
but the caller at line 57 is:
var platformAPI = require(path.join(platformPath, 'cordova', 'Api'));
var platformAPIInstance = new platformAPI(); //line 57: pass nothing.
anyone encounter the same issue? any idea on how to solve this.
If I change the caller to pass the right info, then another place happened again. i don't know how many there will be.
By the way, the above issue is only for CLI. if I build inside android studio, then I don't have such a problem.
The text was updated successfully, but these errors were encountered:
I got the following exception:
at new Api (/home/jack/ws/cordova/001/ct3/node_modules/cordova-android/lib/Api.js:65:30)
at patchTargetPlatform (/home/jack/ws/cordova/001/ct3/plugins/nodejs-mobile-cordova/install/hooks/both/after-prepare-patch-npm-packages.js:57:29)
class Api {
constructor(platform, platformRootDir, events) {
this.platform = PLATFORM;
this.root = platformRootDir;
setupEvents(events);
const appMain = path.join(this.root, 'app', 'src', 'main'); //line 65: this.root is needed, which means the 2nd parameter is needed.
but the caller at line 57 is:
var platformAPI = require(path.join(platformPath, 'cordova', 'Api'));
var platformAPIInstance = new platformAPI(); //line 57: pass nothing.
versions:
[email protected]
├── [email protected]
└── [email protected]
anyone encounter the same issue? any idea on how to solve this.
If I change the caller to pass the right info, then another place happened again. i don't know how many there will be.
By the way, the above issue is only for CLI. if I build inside android studio, then I don't have such a problem.
The text was updated successfully, but these errors were encountered: