yogeshdixit
2 months agoGuide
Aurora externalContext module issue
Hi All, I am working with a custom component in Aurora using React and TypeScript, but I am encountering a "module not found" error, as shown in the screenshot. Can anyone suggest where I might be g...
- 2 months ago
First, make sure you have the latest SDK installed (24.8). You can update this in package.json, then run npm install.
If that doesn't resolve it, go into tsconfig.json and make sure your "include" line looks like
"include": ["next-env.d.ts", ".next/types/**/*.ts", "**/*.ts", "**/*.tsx", "types/**/*.ts"],
After saving tsconfig.json, and that STILL doesn't fix it, in VSCode try the following:
- Type ctrl/cmd + shift + p to open the command pallette
- Search for "Typescript: Restart TS Server" and click on that
- Give VS Code a moment to restart the TS Server (check status bar at bottom) and it should resolve your TS errors