Question:
I am trying to import a package "xlm2js’. I have gone to NPM package manager and imported the latest version, “0.6.2”. When l go into the WIX code editor and look at the package.json file. It is in there as a dependancy. However when l import the code into my backend file, using “import { parseStringPromise } from ‘xml2js’;”. It gives me an error “Cannot find module ‘xml2js’ or its corresponding type declarations.ts(2307).”
Am l importing this wrong? Or have l missed a step?
Product:
Wix Studio Editor