CarbonLDP / carbonldp

CarbonLDP's general wiki and issue tracking project
8 stars 1 forks source link

Typo in Web Site - "Getting started with the JavaScript SDK" section #16

Open andynice opened 4 years ago

andynice commented 4 years ago

Description

In the wiki "Getting started with the JavaScript SDK" found in https://carbonldp.com/documentation/v5.x.x/javascript-sdk/getting-started/#creating-a-document

There is this example.

// ... imports

let carbonldp;

// ... initialize your CarbonLDP object

console.log( carbonldp.$resolve( "/" ) ); // https://your-domain.com/

It didn't work for me. I used resolve() instead of $resolve(). I'm not sure if it was a typo.

Version

I'm using this version of SDK

"dependencies": {
        "carbonldp": "^5.2.0"
    },

Expected Behavior

http://localhost:8083/

Current Behavior

index.js:7 Uncaught TypeError: carbonldp.$resolve is not a function at eval (index.js:7) at Object../src/js/index.js (bundle.js:4153) at __webpack_require__ (bundle.js:20) at bundle.js:84 at bundle.js:87

Steps to reproduce

Screenshots