My current challenge involves running an app (which I am currently working on) by executing the command:
yarn start
However, upon trying to run the app, I encountered the following error message:
ts-node ./src/engine/server/server
Error: Cannot find module 'contextify'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:580:15)
at Function.Module._load (internal/modules/cjs/loader.js:506:25)
at Module.require (internal/modules/cjs/loader.js:636:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object.<anonymous> (/Users/aa/Documents/app/node_modules/jsdom/lib/jsdom/browser/index.js:5:21)
at Module._compile (internal/modules/cjs/loader.js:688:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
at Module.load (internal/modules/cjs/loader.js:598:32)
at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
at Function.Module._load (internal/modules/cjs/loader.js:529:3)
I discovered that the necessary dependency contextify
is missing from the package.json
file. Despite trying different Node versions, I continue to encounter the same issue. The application is built with TypeScript and uses Webpack. I am using a Mac operating system. Any suggestions or insights on how to resolve this problem would be greatly appreciated.