2021年5月4日星期二

Converting Js to Ts error cannot find module

Currently converting my project from JS to TS, working on the server side. Here is the error code.

internal/modules/cjs/loader.js:883    throw err;    ^    Error: Cannot find module   '/Users/steven/Documents/codingDojo/Mern/tomrotten/server/index.js'      at Function.Module._resolveFilename   (internal/modules/cjs/loader.js:880:15)      at Function.Module._load (internal/modules/cjs/loader.js:725:27)      at Function.executeUserEntryPoint [as runMain]   (internal/modules/run_main.js:72:12)      at internal/main/run_main_module.js:17:47 {    code: 'MODULE_NOT_FOUND',    requireStack: []  }  [nodemon] app crashed - waiting for file changes before starting...  
https://stackoverflow.com/questions/67394280/converting-js-to-ts-error-cannot-find-module May 05, 2021 at 10:05AM

没有评论:

发表评论