ARTICLE AD BOX
I'm trying to run yarn start:dev which keeps instant failing with the following error:
[nodemon] restarting due to changes... [nodemon] starting `./bin/generate-ssl-options.sh && ts-node ./src/main/server.ts` Error: Cannot find module 'src\main\routes\home.ts' Require stack: - C:\Users\supri\Documents\GitHub\hmcts-dev-test-frontend\src\main\app.ts - C:\Users\supri\Documents\GitHub\hmcts-dev-test-frontend\src\main\server.ts at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1048:15) at Function.Module._resolveFilename.sharedData.moduleResolveFilenameHook.installedValue [as _resolveFilename] (C:\Users\supri\Documents\GitHub\hmcts-dev-test-frontend\node_modules\@cspotcode\source-map-support\source-map-support.js:811:30) at Function.Module._load (node:internal/modules/cjs/loader:901:27) at Module.require (node:internal/modules/cjs/loader:1115:19) at require (node:internal/modules/helpers:130:18) at C:\Users\supri\Documents\GitHub\hmcts-dev-test-frontend\src\main\app.ts:34:20 at Array.map (<anonymous>) at Object.<anonymous> (C:\Users\supri\Documents\GitHub\hmcts-dev-test-frontend\src\main\app.ts:34:4) at Module._compile (node:internal/modules/cjs/loader:1241:14) at Module.m._compile (C:\Users\supri\Documents\GitHub\hmcts-dev-test-frontend\node_modules\ts-node\src\index.ts:1618:23) { code: 'MODULE_NOT_FOUND', requireStack: [ 'C:\\Users\\supri\\Documents\\GitHub\\hmcts-dev-test-frontend\\src\\main\\app.ts', 'C:\\Users\\supri\\Documents\\GitHub\\hmcts-dev-test-frontend\\src\\main\\server.ts' ] } [nodemon] app crashed - waiting for file changes before starting...I have ended up needing to import modules using npm, although yarn webpack does complete, so I'm assuming that isn't an issue in this case. The routes are all done correctly although not 100% sure where this is being set within the stack.
