I am currently in the process of creating a bot using angular cli and integrating dialog flow's API. The issue I am facing is that when I perform debugging in Chrome, I encounter the following error logs:
ApiAiClientConfigurationError
columnNumber: 21
fileName: "http://localhost:4200/vendor.bundle.js line 47 > eval"
lineNumber: 16
message: "Access token is required for new ApiAi.Client instance"
name: "ApiAiClientConfigurationError"
ngDebugContext: Object { view: {…}, nodeIndex: 1, nodeDef: {…}, … }
ngErrorLogger: function bound ()
stack: "ApiAiBaseError@webpack-internal:///../../../../api-ai-javascript/ts/Errors.ts:18:23\nApiAiClientConfigurationError@webpack-internal:///../../../../api-ai-javascript/ts/Errors.ts:27:21\nApiAiClient@webpack-internal:///../../../../api-ai-javascript/ts/ApiAiClient.ts:16:19\nChatService@webpack-internal:///../../../../../src/app/chat/chat.service.ts:23:23\n_createClass@webpack-internal:///../../../core/esm5/core.js:11110:20\n_createProviderInstance$1@webpack-internal:///../../../core/esm5/core.js:11086:26\nresolveNgModuleDep@webpack-internal:///../../../core/esm5/core.js:11071:17\nNgModuleRef_.prototype.get@webpack-internal:///../../../core/esm5/core.js:12307:16\nresolveDep@webpack-internal:///../../../core/esm5/core.js:12805:12\ncreateClass@webpack-internal:///../../../core/esm5/core.js:12667:29\ncreateDirectiveInstance@webpack-internal:///../../../core/esm5/core.js:12512:37\ncreateViewNodes@webpack-internal:///../../../core/esm5/core.js:13973:53\ncallViewAction@webpack-internal:///../../../core/esm5/core.js:14407:13\nexecComponentViewsAction@webpack-internal:///../../../core/esm5/core.js:14316:13\ncreateViewNodes@webpack-internal:///../../../core/esm5/core.js:14001:5\ncreateRootView@webpack-internal:///../../../core/esm5/core.js:13862:5\ncallWithDebugContext@webpack-internal:///../../../core/esm5/core.js:15287:39\ndebugCreateRootView@webpack-internal:///../../../core/esm5/core.js:14570:12
What would be the proper way to insert my Dialog Flow's access token in the environments folder?