Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Ultcrt opened this issue Jan 19, 2023 · 2 comments
Closed

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

Ultcrt opened this issue Jan 19, 2023 · 2 comments
Labels
Milestone

Comments

@Ultcrt
Copy link

Ultcrt commented Jan 19, 2023

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 benkeen added the Bug label Jan 19, 2023
@benkeen
Copy link
Owner

benkeen commented Jan 19, 2023

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
Copy link
Author

Ultcrt commented Jan 20, 2023

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

@benkeen benkeen added this to the 4.1.0 milestone Jan 22, 2023
@benkeen benkeen reopened this Jan 29, 2023
@benkeen benkeen closed this as completed Jan 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants