i read the tutorial https://docs.inrupt.com/developer-tools/javascript/client-libraries/tutorial/getting-started-part2/
,try to add email to my pod,but addStringNoLocale not useful to add email
has an error when i run
Uncaught (in promise) TypeError: Cannot read property 'value' of undefined
at internal_toIriString (interfaces.internal.mjs:27)
at internal_isValidUrl (datatypes.mjs:300)
at addTerm (add.mjs:219)
at addLiteral (add.mjs:201)
at addLiteralOfType (add.mjs:229)
at addStringNoLocale (add.mjs:167)
at createCard (index.js:99)
at HTMLButtonElement.buttonCreatecard.onclick (index.js:193)
internal_toIriString @ interfaces.internal.mjs:27
internal_isValidUrl @ datatypes.mjs:300
addTerm @ add.mjs:219
addLiteral @ add.mjs:201
addLiteralOfType @ add.mjs:229
addStringNoLocale @ add.mjs:167
createCard @ index.js:99
buttonCreatecard.onclick @ index.js:193
Are there any way to add the email to my pod?
async function createCard(){
labelCreatecardStatus.textContent = "";
const podUrl1 = document.getElementById("PodURL1").value;
//add a link to this resource in my profile that applications can follow.
const cardListUrl = `${podUrl1}/getting-started/cardList/myCard`;
// Add email to the Dataset
let cardemail = document.getElementById("cardemail").value;
let myCardList = createSolidDataset();
let cardinfo = createThing({name:"CardID"});
cardinfo = addStringNoLocale(cardinfo, SCHEMA_INRUPT_EXT.email, cardemail);