server/index.ts:7:23 - error TS2580: Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i @types/node`.
7 const port = parseInt(process.env.PORT, 10) || 3000;
server/index.ts:8:13 - error TS2580: Cannot find name 'process'. Do you need to install type definitions for node? Try npm i @types/node.
8 const dev = process.env.NODE_ENV !== "production";
$ npm run dev
routes/index.ts:1:16 - error TS2580: Cannot find name 'require'. Do you need to install type definitions for node? Try
npm i @types/node
.1 const routes = require("next-routes")();
server/index.ts:3:18 - error TS2307: Cannot find module 'path'.
3 import path from "path";
server/index.ts:8:13 - error TS2580: Cannot find name 'process'. Do you need to install type definitions for node? Try
npm i @types/node
.8 const dev = process.env.NODE_ENV !== "production";