Question:
Everything worked fine then suddenly I got an error that crashes my app before start.
I don’t know from where error came when everything worked fine a day before
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
Error: Cannot find module 'aws-sdk/lib/config_service_placeholders' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15) at Function.Module._load (internal/modules/cjs/loader.js:562:25) at Module.require (internal/modules/cjs/loader.js:692:17) at require (internal/modules/cjs/helpers.js:25:18) at Object. at Module._compile (internal/modules/cjs/loader.js:778:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10) at Module.load (internal/modules/cjs/loader.js:653:32) at tryModuleLoad (internal/modules/cjs/loader.js:593:12) at Function.Module._load (internal/modules/cjs/loader.js:585:3) at Module.require (internal/modules/cjs/loader.js:692:17) at require (internal/modules/cjs/helpers.js:25:18) at Object. at Module._compile (internal/modules/cjs/loader.js:778:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10) at Module.load (internal/modules/cjs/loader.js:653:32)``` |
Answer:
I had the same problem and the solution was embarrassingly simple. I use Visual Studio Code and had accidentally imported a bad, unused file.
Going over your files mentioned in the error output and see if you have imported the wrong file 🙂
Hope you find it!