benkeen / generatedata

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

Cannot find module "../../_env" when running yarn startApp #806

Closed Ultcrt closed 1 year ago

Ultcrt commented 1 year ago

Hello,

I get following error while running yarn startApp:

semantic error TS2307: Cannot find module '../../_env' or its corresponding type declarations.

749 also mentioned the same error.

I think this error is caused by "yarn prod" script that executes "yarn build" after "grunt".

Maybe the "yarn prod" script should executes "yarn build" before "grunt", like:

"prod": "cd client && yarn build && grunt && yarn webpackProd"

So that _env.ts is generated before executing "grunt".

benkeen commented 1 year ago

Thanks! I hate to say it, but I noticed this too & hadn't updated it. I'll update the script - I think I did the same fix.

Ultcrt commented 1 year ago

Cool, happy to know that bug is fixed! Thanks for the response and this amazing project!