-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
I wanted to use the library.
But when I connected it as a module I got an error.
Here's the part of the code that doesn't work and get one error
details: "\"expansionMap\" not supported."
type:"jsonld.OptionsError"
const unmappedProperties = [];
const expansionMap = info => {
if (info) {
if (info.activeProperty) {
unmappedProperties.push(
`${info.activeProperty}.${info.unmappedProperty}`
);
} else if (info.unmappedProperty) {
unmappedProperties.push(info.unmappedProperty);
}
}
};
// Remove all keys not present in the jsonld context
const expanded = await jsonld.expand(jsonldDoc, {
documentLoader,
expansionMap,
});
How can i fix this problem ?
Activity
gjgd commentedon Oct 1, 2023
Hi! I don't maintain this lib anymore but happy to help debug this. Can you provide a code example to repro the error?