Closed samtipton closed 1 year ago
It is in working order. Your issue is that you are using typescript but this project doesn't provide types. You need to tell your project a global type for it. Add a global.d.ts file with the following
declare module "react-json-editor-ajrm/locale/en";
Then it will import as any
npm i --save react-json-editor-ajrm
andWhat did you expect to see? *REQUIRED Could not resolve the library, had to run
npm i @types/react-json-editor-ajrm
then error appeared online
"TS7016: Could not find a declaration file for module 'react-json-editor-ajrm/locale/en'. <absolute_path> implicitly has an 'any' type. If the 'react-json-editor-ajrm' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-json-editor-ajrm'
Working setup instructions getting example file to working order