dialogflow-javascript-client icon indicating copy to clipboard operation
dialogflow-javascript-client copied to clipboard

Error Resolving ApiAiBaseError Symbol Value in angular-cli

Open ultraJeff opened this issue 7 years ago • 2 comments

Hey,

I'm using the Typescript version of the apiai-javascript-client in my angular-cli project. When I try to run ng build --prod I get this error:

ERROR in Error encountered resolving symbol values statically. Reference to a non-exported class ApiAiBaseError. Consider exporting the class, resolving symbol ApiAiClientConfigurationError in /.../node_modules/api-ai-javascript/ts/Errors.ts

It seems like adding an export in front of abstract class ApiAiBaseError extends Error fixes the issue, for me at least.

ultraJeff avatar Apr 17 '17 22:04 ultraJeff

Ok, I add commit for that, will appear in upcoming release

Gugic avatar Apr 28 '17 19:04 Gugic

Hi @Gugic, it seems that my PR you integrated a couple of days ago will close this one as well. More specifically, thanks to the update to newest TS version, the export is automatically correctly set. Of course please check it to verify it is not just working on my fork...

Alberto2686 avatar May 11 '17 17:05 Alberto2686