I've been developing a Teams app with my tab in React and TypeScript. (In case you're unfamiliar, the tab can be seen as an individual React app)
Currently, I'm setting up linting using ESLint and Prettier.
I have successfully run the script and resolved all the issues that arose.
However, when I start debugging my Teams application, I encounter this error:
`ERROR in [eslint] Cannot find module 'node:fs' Require stack:
- /Users/teams_app/tabs/node_modules/synckit/lib/index.cjs
- /Users/teams_app/tabs/node_modules/eslint-plugin-prettier/eslint-plugin-prettier.js
- /Users/teams_app/tabs/node_modules/@eslint/eslintrc/dist/eslintrc.cjs Occurred while linting /Users/teams_app/tabs/src/components/tabs/wish-tab/Wish.tsx:1 Rule: "prettier/prettier"`
Here's the content of my eslintrc.json file:
{
... // your JSON configuration here
}
Furthermore, take a look at the list of dev dependencies below:
"devDependencies": {
... // your dependency versions here
},
If you'd like to see my folder structure, check out this folder structure image. However, I am consistently encountering errors on every file, indicating a path issue – shown in this path error image.
I've attempted downgrading "eslint-import-resolver-typescript" to "^2.7.1" and updating to the latest node version (18.16.1). Additionally, I upgraded "@types/node" to "^20.4.2".
My goal is to have the app running smoothly without any errors.