benkeen / generatedata

A powerful, feature-rich, random test data generator.
https://generatedata.com
2.21k stars 611 forks source link

Add better error handling for when .env file doesn't exist #765

Closed benkeen closed 1 year ago

benkeen commented 1 year ago

As described. Right now it just throws the following error:

% yarn startApp
yarn run v1.22.19
$ cd client && grunt && yarn build && yarn webpackProd
Loading "Gruntfile.js" tasks...ERROR
>> TypeError: Cannot read property 'split' of undefined
Warning: Task "default" not found. Use --force to continue.
benkeen commented 1 year ago

Also try removing the client/_env.ts file (doesnt' exist by default) and run yarn startApp as per docs. It throws an error becuase the file isn't created. Check out.