Closed guilhermewaess closed 7 years ago
Well, works if I put this on first line of index.ts:
require('dotenv').config();
But I dont know if is the best solution!
We have detected this problem on Windows a time ago, but since we all use linux-based systems we couldn't take the chance to dig a little more on this.
I will give it a try at home at the weekend! Thanks for the report and for the workaround ;)
@guilhermewaess I will try to review and see if we can improve this for windows users 😄. As @joseluisgarciaott said, we all use linux-based and OS X systems, so we don't give the time needed to review windows support.
There's a PR to resolve a nodemon related issue in windows. For now, the work around you made seems the only way to do the trick! Thanks for this issue and for your contribution!
Hello, I'm trying to run you starter, but stuck on this error:
node --version v7.7.3
OS: Windows 10
Escaping the quotes, I got another error: "nodemon:build": "nodemon --exec \"node -r dotenv/config\" ./node_modules/.bin/ts-node -- ./src/index.ts",
Any clue?