-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[@loopback/build] - lb-tsc: not found. Because NODE_ENV = production #10020
Comments
Dev dependencies are as the name implies for development, I am not sure why you would need If you can provide your Dockerfile and more details on why you need |
Describe the bug
Hi! In all examples
@loopback/build
is installed as dev dependency --->npm i @loopback/build --save-dev
This causes issues with NODE_ENV=production (specially when trying to deploy the app) as dev dependencies are not resolved...
I fixed this by using
npm i --include=dev
in my Dockerfile. But I don't think that's entirely right...What's the recommendation here?
Thanks in advance!
Logs
No response
Additional information
No response
Reproduction
export NODE_ENV=production; npm i
The text was updated successfully, but these errors were encountered: