-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
protobuf have issue with typescript long : Cannot find name 'Long' #1104
Labels
Comments
You need to add the following configuration
in the tsconfig.jsonfile compilerOptions.types add "Long" to array |
Greetings! I think we fixed this over in #1166 |
Is there a plan to release a new version anytime soon? This bug exists in 6.8.8, and the fix was never released. |
i fixed solution steps:
|
10 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm new to protobuf. I'm using "protobufjs": "^6.8.8" for generating typescript. And imported this generated file to my component.spec.ts , then got compilation error when run ng serve
[ERROR] target/generated-sources-js/xxx.d.ts(4253,40): error TS2304: Cannot find name 'Long'.
I included the "@types/long": "^4.0.0", "long": "^4.0.0", in my package.json dependencies. Still got the same error.
Please advise. Many thanks
The text was updated successfully, but these errors were encountered: