When attempting to integrate a custom Plugin into Phonegap 3.0, an error stating "The arguments passed to path.join must be strings" occurred

I have successfully ported an older Twitter plugin to work with PG > 3.0, and it functions properly in my IDE. However, when I try to install it via NPM, I encounter errors. I have double-checked the file system structure and plugin.xml specification for any mistakes.

Even after changing the plugin's ID from CDVPluginTwitter to avoid any prefix-related issues, I continue to receive the following error:

path.js:360
        throw new TypeError('Arguments to path.join must be strings');
              ^
TypeError: Arguments to path.join must be strings
    at path.js:360:15
    at Array.filter (native)
    at Object.exports.join (path.js:358:36)
    at /usr/local/lib/node_modules/phonegap/node_modules/cordova/node_modules/plugman/src/util/plugins.js:72:39
    at /usr/local/lib/node_modules/phonegap/node_modules/cordova/node_modules/shelljs/shell.js:1707:7
    at ChildProcess.exithandler (child_process.js:635:7)
    at ChildProcess.EventEmitter.emit (events.js:98:17)
    at maybeClose (child_process.js:735:16)
    at Socket.<anonymous> (child_process.js:948:11)
    at Socket.EventEmitter.emit (events.js:95:17)

You can find the Git repository here: https://github.com/ednasgoldfishuk/CDVPluginTwitter/tree/master

Any suggestions or ideas on how to resolve this issue?

Answer №1

After adding the closing </plugin> tag in plugin.xml, the Github repository has been revised and is now officially compatible with PhoneGap 3.0 + for installation.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

'npm' and 'node' are not being recognized as internal or external commands, an operable program, or a batch file on Windows

Having issues with installing nvm and nodejs on Windows. While nvm is functioning properly, I am encountering the error message "is not recognized as an internal or external command, operable program or batch file." when trying to use npm or node. I have ...

While attempting to install a package from a TFS feed during the build process, an error was encountered stating: "Authentication

We have developed our own npm package and a project that is dependent on it. Rather than installing the package from a physical file, we want to publish it to a TFS feed repository. After publishing the package to the feed from my development machine, I u ...

Issue with bundling project arises post upgrading node version from v6.10 to v10.x

My project uses webpack 2 and awesome-typescript-loader for bundling in nodejs. Recently, I upgraded my node version from 6.10 to 10.16. However, after bundling the project, I encountered a Runtime.ImportModuleError: Error: Cannot find module 'config ...

Issue encountered with the Selenium JavaScript Chrome WebDriver

When it comes to testing an application, I always rely on using Selenium chromewebdriver. For beginners like me, the starting point was following this insightful Tutorial: https://code.google.com/p/selenium/wiki/WebDriverJs#Getting_Started After download ...

The "loose" mode is not resolving the issue with the lack of support for the experimental syntax 'classProperties' that is currently disabled

Error Message: The experimental syntax 'classProperties' is currently not enabled Even after trying the suggested solutions, I still encounter the error during re-building. Click here for more information on the experimental syntax 'classP ...

Transferring files using Gulp.js

Struggling to transfer HTML pages from src folder to dist folder using Gulp? Despite following online tutorials, the process isn't working as expected. Check out my folder structure: https://i.stack.imgur.com/vfO6L.png Take a look at my gulpfile: ...

Oops! ExpressJs no longer includes some middleware like bodyParser

I am encountering the error message above every time I attempt to run my application. I cannot pinpoint which package I may have forgotten to add. The server was functioning perfectly before adding this document, so I am hopeful that the issue lies within ...

Setting up npm modules in Laravel project

I am ready to deploy my Laravel application, but I have a question about the npm packages. Do I need to install them before deployment or can I keep them as they are? Currently, the app is working perfectly fine without running npm install. The size of t ...

Your functions have encountered an error in parsing, possibly caused by a problem within your node_modules directory (refer to the information above)

When attempting to run firebase emulators:start, I am encountering the following issue. After typing and pressing enter, nothing happens: i Starting emulators: ["functions"] ⚠ Your requested "node" version "8" doesn't match your global version "1 ...

When utilizing fs.readdir along with fs.statSync, you may encounter the error message "ENOENT: no such file or directory

This code snippet is functional: var promise = new Future(), dirs = [], stat; Fs.readdir(Root + p, function(error, files){ _.each(files, function(file) { //stat = Fs.statSync(file); //if ( s ...

WebPack Error: When calling __webpack_modules__[moduleId], a TypeError occurs, indicating that it is not a function during development. In production, an Invalid hook call error

Encountering a WebPack error when utilizing my custom library hosted as a package and streamed with NPM Link. Interestingly, the production version functions flawlessly. Below are my scripts: "scripts": { "dev": "rm -rf build ...

Unable to access the Python gstreamer components

I've been referring to a tutorial at to develop a sample gstreamer element using Python. Despite my efforts, I'm unable to get GStreamer to recognize it. I've tried adjusting the GST_PLUGIN_PATH without success. While GStreamer can locate c ...

Transfer the script from package.json to an npm package

In each of our plugins' root directories, there is a file named tools.js. This file contains a build function that assists in creating builds for the plugin. The package.json file references it like this: "scripts": { "build:node&qu ...

I am encountering an issue with the apisauce npm package on my Mac while working on a ReactJS project - it is throwing an error stating "Uncaught TypeError:

I'm encountering a frustrating error in the browser console after recently factory resetting my MacBook. The issue seems to be stemming from an npm package called apisauce, which I've used successfully for calling APIs in numerous projects in the ...

During the deployment process using 'gh-pages', a message indicated that the paths related to 'node_modules' have been ignored by one of the .gitignore files

While attempting to deploy my app on GitHub, I encountered the following error: $ npm run deploy > <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="8ee9e7faa3fcebfee1fde7fae1fcf7cebfa0bea0be">[email protected]</a&g ...

What would be the most secure location to keep personal data for an npm package?

Suppose I have an npm package that serves as a cli-tool. Users are required to input their Yahoo email and password prior to using the features. My query is, what is the recommended practice for storing this type of sensitive data securely within the ap ...

Is there a way to pass npm parameters to dotnet publish?

So here's the situation: I'm working with a private npm registry on a corporate network, and unfortunately I can't download from github. In order to make things work, I need to include --no-optional when running npm install which is ca ...

Tips for preserving the installation of a global package by utilizing the package.json file

Is there a way to save the installation of a global package using package.json? I've come up with a method that works for me: Here's what I added to my package.json: "scripts": { "preinstall": "npm install babel babel-cli -g" }, This scri ...

Developed several package bundles simultaneously by executing a single command with npm and Browserify

I am working on creating two bundle.js files, one for iOS and one for Android, with just one build command. My goal is to add a second app to the bundle by importing it as an alias and letting Browserify determine the source. I want to avoid modifying App. ...

Whenever I try to set up a new react-app, I encounter issues with the dependency tree causing

Recently, I've been encountering an error every time I attempt to create a new react app. I've tried removing all node/npm versions and reinstalling a fresh one with the latest Node LTS, but unfortunately, the following error persists: npm ERR! ...