Recently, I ventured into a new project using the TypeScript
Basic Node.js Express 4 Application
template in VS 2017.
To enhance my project, I utilized npm to add passport
. The addition of passport
is reflected under the npm node in Solution Explorer, with corresponding folders in node_modules. Attempting to include it by mirroring the syntax
import express = require('express')
, I inserted:
import passport = require("passport");
Unfortunately, this resulted in the error message:
TS2307 Cannot find module 'passport'
I'm struggling to figure out what might be missing for this setup to function properly. Any insights would be greatly appreciated!
My quest for relevant documentation on utilizing TypeScript, especially in conjunction with Node.js, within Visual Studio continues...