Warning: session_start(): open(/tmp/sess_232fa717ea3c589968edb8ec6adf8a9e, O_RDWR) failed: No space left on device (28) in /var/www/html/qa-include/app/users.php on line 162

Warning: session_start(): Failed to read session data: files (path: ) in /var/www/html/qa-include/app/users.php on line 162
How to fix "error TS2307: Cannot find module" due to imports from src in type declarations - Qtsd Q&A
+3 votes
in Others by (300 points)
This error occurs when we use modules from another micro app

1 Answer

+1 vote
by (300 points)
Using:

- Create a file index.d.ts in the app-shell

- add like this

  declare module "reactApp/*"

  declare module "vueApp/*"

  declare module "svelteApp/*"

  ...

- in tsconfig.json add new like this line

 "include": ["src", "index.d.ts"]
Welcome to Qtsd Q&A, where you can ask questions and receive answers from other members of the community.
...