Struggling with adding the following line of code in an index.ts file: import express, { Application } from 'express';
Initially encountered an error with "from 'express'", so I ran npm i @types/express -D which fixed that issue but now getting an error with just "import express"
The error code TS1259 is perplexing me, and I am unsure how to resolve it. Why would importing express trigger an error after running @types/express, and what steps can I take to troubleshoot this?
Tried using import express = require ('express') but no luck resolving the error
Note: The node_modules folder is not visible in the project on Visual Studio, although it is present in the C drive folder
The package.json appears to be correct and includes express as expected
Your assistance is greatly appreciated