Skip to content

can’t access property name, t is undefined #260

@cvetanovskistefan72

Description

@cvetanovskistefan72

export function createCslEngineOnce(
dataById: Record<string, any>,
styleXml: string,
localeXml?: string
) {
const sys = {
retrieveItem(id: string) {
return dataById[id];
},

retrieveLocale(lang: string) {
  console.log(lang)
  if (!lang.startsWith("en")) {
    throw new Error(
      `This CSL file requires locale "${lang}", but only "en-US" is currently supported.`
    );
  }

  return localeEnUS.replace(/^\uFEFF/, "");
},

};

return new CSL.Engine(sys as any, styleXml, "en-US");
}

This message "can’t access property name, t is undefined" we receive it on an QA and DEV env as soon as createCslEngineOnce is called. But it does not happen locally.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions