Thanks for the example Kelly, that's useful. I haven't yet been able to reconcile it with an app scaffolded by "create-react-app --template typescript" but am still working on it.
In the meantime, I noticed an number of difference in your tsconfig.json and the values described in the JSAPI docs for an AMD-style environment:
{
"compilerOptions": {
"module": "amd",
"lib": ["ES2019", "DOM"],
"noImplicitAny": true,
"esModuleInterop": true,
"sourceMap": true,
"jsx": "react",
"jsxFactory": "tsx",
"target": "ES2019",
"experimentalDecorators": true,
"preserveConstEnums": true,
"suppressImplicitAnyIndexErrors": true,
"importHelpers": true,
"moduleResolution": "node"
},
"include": ["./app/*"],
"exclude": ["node_modules"]
}
I understand that the project option for "module" needs to change, but what about the others? Are the settings that you're using what you would recommend instead for an ESM project?
Thanks again for your help!
--john