question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Missing Prototype Functions such as createSingle

See original GitHub issue

Keep getting the following error when i run the three code blocks : error TypeError: this._createSingle is not a function extension.js:65 at Tooling.Connection.insert.Connection.create (/Users/michaelgarfinkel/Documents/forcecompiler/node_modules/jsforce/lib/connection.js:727:12) at compile (/Users//Documents/*/extension.js:58:29) at /Users/michaelgarfinkel/Documents/forcecompiler/extension.js:126:17 at /Users/michaelgarfinkel/Documents/forcecompiler/node_modules/jsforce/lib/promise.js:72:9 at _combinedTickCallback (internal/process/next_tick.js:73:7) at process._tickCallback (internal/process/next_tick.js:104:9)

I run this first

        conn = new jsforce.Connection({
            // you can change loginUrl to connect to sandbox or prerelease env.
            loginUrl: 'https://test.salesforce.com',
            version: '43.0'
        });

this second

  conn.login(username, password, function (err, userInfo) {
            if (err) {
                console.error(err);
                reject(err);
            } else {
                // Now you can get the access token and instance URL information.
                // Save them to establish connection next time.
                console.log(conn.accessToken);
                console.log(conn.instanceUrl);
                // logged in user property
                console.log("User ID: " + userInfo.id);
                console.log("Org ID: " + userInfo.organizationId);
                // ...
                console.log('conn', conn);            
}
        });

And this third

        return conn.tooling.sobject('ApexClass').create({
            body: apexBody
        }, function (err, res) {
            if (err) { return console.error(err); }
            console.log(res);
        });

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
aust1nzcommented, Dec 11, 2018

I had the same issue with JSforce v 1.9.1. I downgraded to 1.8.5 and was able to use the Tooling API as expected.

0reactions
jacksonStonecommented, Oct 10, 2019

So it seems this issue should not be closed, right?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Explanation about missing prototype error - Stack Overflow
It is a compiler dependent case, where, In GCC compiler it won't show any errors, It just ignore them. Including "void" in the...
Read more >
'Missing prototype" error . - NI Community
In the Build Options window there is a check box that says "require function prototypes". It's located in the "Compiling Errors and Warnings"...
Read more >
Why partner with PSI Urethanes for custom urethane products ...
There is a long-standing myth that 3D printing is only suitable for 3D prototype printing and that additive manufacturing technologies are not suitable...
Read more >
Object.prototype.__proto__ - JavaScript - MDN Web Docs
The __proto__ property is a simple accessor property on Object.prototype consisting of a getter and setter function. A property access for __ ...
Read more >
com.squareup.wire.java.Profile java code examples | Tabnine
public TypeName typeName(ProtoType protoType) { TypeName profileJavaName = profile ... protoType}, such as * if that type wasn't in this generator's schema.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found