-
Notifications
You must be signed in to change notification settings - Fork 34
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
Running the plugin as a standalone executable throws Error: Cannot find module 'tslib' #104
Comments
Hi, is that a real use-case scenario? Normally you would already have angular with all of its dependencies in place This however should be fixed |
Hello @smnbbrv, I agree with you, this is not a usual use-case. However I am using the plugin in a bazel build which forces us to add this dependency explicitly because it is not a direct/implicit dependency of the plugin itself. Therefore this is just "nice to have" to have this fixed upstream. 😉 |
I'm totally fine with this. Could you, please, prepare a PR with the dep? |
Sure, I am going to prepare a PR. |
Update: I was trying to reproduce this with a local setup.
Result: No error! If I am using the latest release |
of course, the root package.json is not anyhow getting into resulting published packages |
Okay, thanks. Then I am preparing a fix for it. |
When using the plugin without any other dependency it throws the following error:
Steps to reproduce:
Add a package.json with the following content:
Run from the root directory:
Possible solution:
Add
tslib
as a dependency for package@ngx-grpc/protoc-gen-ng
The text was updated successfully, but these errors were encountered: