I have every thing installed then too i am getting this error

src/index.ts(4,22): error TS2792: Cannot find module ‘mongoose’. Did you mean to set the ‘moduleResolution’ option to ‘nodenext’, or to add aliases to the ‘paths’ option?

Jun 15 10:31:20 PMsrc/middleware/auth.ts(1,22): error TS2792: Cannot find module ‘express-oauth2-jwt-bearer’. Did you mean to set the ‘moduleResolution’ option to ‘nodenext’, or to add aliases to the ‘paths’ option?

Jun 15 10:31:20 PMsrc/middleware/validation.ts(1,40): error TS2792: Cannot find module ‘express-validator’. Did you mean to set the ‘moduleResolution’ option to ‘nodenext’, or to add aliases to the ‘paths’ option?

Jun 15 10:31:20 PMsrc/models/user.ts(1,22): error TS2792: Cannot find module ‘mongoose’. Did you mean to set the ‘moduleResolution’ option to ‘nodenext’, or to add aliases to the ‘paths’ option?

Jun 15 10:31:20 PMtsconfig.json(29,15): error TS6046: Argument for ‘–module’ option must be: ‘none’, ‘commonjs’, ‘amd’, ‘system’, ‘umd’, ‘es6’, ‘es2015’, ‘es2020’, ‘es2022’, ‘esnext’, ‘node16’, ‘nodenext’, ‘preserve’.

Hey,

Are you sure that ‘mongoose’ is installed in your environment? Is it listed in your dependencies in the package.json file? Can you provide any other relevant information or error messages you’re seeing?

Jérémy.
Render Support, UTC+3

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.