[GH-ISSUE #20] Code doesn't build immediately after running create-agent-chat-app #11

Closed
opened 2026-02-16 08:17:11 -05:00 by yindo · 0 comments
Owner

Originally created by @benjamincburns on GitHub (Mar 20, 2025).
Original GitHub issue: https://github.com/langchain-ai/create-agent-chat-app/issues/20

After working around #19, I ran npm run install. It produced the following errors:

agents:build:internal:
src/react-agent/utils.ts:8:23 - error TS2742: The inferred type of 'loadChatModel' cannot be named without a reference to '../../../../node_modules/@langchain/core/dist/caches/base.js'. This is likely not portable. A type annotation is necessary.
agents:build:internal:
agents:build:internal: 8 export async function loadChatModel(fullySpecifiedName: string) {
agents:build:internal:                         ~~~~~~~~~~~~~
agents:build:internal:
agents:build:internal: src/react-agent/utils.ts:8:23 - error TS2742: The inferred type of 'loadChatModel' cannot be named without a reference to '../../../../node_modules/@langchain/core/dist/load/map_keys.js'. This is likely not portable. A type annotation is necessary.
agents:build:internal:
agents:build:internal: 8 export async function loadChatModel(fullySpecifiedName: string) {
agents:build:internal:                         ~~~~~~~~~~~~~
agents:build:internal:
agents:build:internal: src/react-agent/utils.ts:8:23 - error TS2742: The inferred type of 'loadChatModel' cannot be named without a reference to '../../../../node_modules/@langchain/core/dist/load/serializable.js'. This is likely not portable. A type annotation is necessary.
agents:build:internal:
agents:build:internal: 8 export async function loadChatModel(fullySpecifiedName: string) {
agents:build:internal:                         ~~~~~~~~~~~~~
agents:build:internal:
agents:build:internal: src/react-agent/utils.ts:8:23 - error TS2742: The inferred type of 'loadChatModel' cannot be named without a reference to '../../../../node_modules/@langchain/core/dist/messages/tool.js'. This is likely not portable. A type annotation is necessary.
agents:build:internal:
agents:build:internal: 8 export async function loadChatModel(fullySpecifiedName: string) {
agents:build:internal:                         ~~~~~~~~~~~~~
agents:build:internal:
agents:build:internal: src/react-agent/utils.ts:8:23 - error TS2742: The inferred type of 'loadChatModel' cannot be named without a reference to '../../../../node_modules/@langchain/core/dist/runnables/base.js'. This is likely not portable. A type annotation is necessary.
agents:build:internal:
agents:build:internal: 8 export async function loadChatModel(fullySpecifiedName: string) {
agents:build:internal:                         ~~~~~~~~~~~~~
agents:build:internal:
agents:build:internal: src/react-agent/utils.ts:8:23 - error TS2742: The inferred type of 'loadChatModel' cannot be named without a reference to '../../../../node_modules/@langchain/core/dist/tracers/base.js'. This is likely not portable. A type annotation is necessary.
agents:build:internal:
agents:build:internal: 8 export async function loadChatModel(fullySpecifiedName: string) {
agents:build:internal:                         ~~~~~~~~~~~~~
agents:build:internal:
agents:build:internal: src/react-agent/utils.ts:8:23 - error TS4058: Return type of exported function has or is using name 'EventStreamCallbackHandlerInput' from external module "/Users/bburns/projects/demos/npm-test-2/node_modules/langchain/dist/chat_models/universal" but cannot be named.
agents:build:internal:
agents:build:internal: 8 export async function loadChatModel(fullySpecifiedName: string) {
agents:build:internal:                         ~~~~~~~~~~~~~
agents:build:internal:
agents:build:internal: src/react-agent/utils.ts:8:23 - error TS4094: Property '_callWithConfig' of exported anonymous class type may not be private or protected.
agents:build:internal:
agents:build:internal: 8 export async function loadChatModel(fullySpecifiedName: string) {
agents:build:internal:                         ~~~~~~~~~~~~~
agents:build:internal:
agents:build:internal: src/react-agent/utils.ts:8:23 - error TS4094: Property '_encoding' of exported anonymous class type may not be private or protected.
agents:build:internal:
agents:build:internal: 8 export async function loadChatModel(fullySpecifiedName: string) {
agents:build:internal:                         ~~~~~~~~~~~~~
agents:build:internal:
agents:build:internal: src/react-agent/utils.ts:8:23 - error TS4094: Property '_getOptionsList' of exported anonymous class type may not be private or protected.
agents:build:internal:
agents:build:internal: 8 export async function loadChatModel(fullySpecifiedName: string) {
agents:build:internal:                         ~~~~~~~~~~~~~
agents:build:internal:
agents:build:internal: src/react-agent/utils.ts:8:23 - error TS4094: Property '_separateRunnableConfigFromCallOptions' of exported anonymous class type may not be private or protected.
agents:build:internal:
agents:build:internal: 8 export async function loadChatModel(fullySpecifiedName: string) {
agents:build:internal:                         ~~~~~~~~~~~~~
agents:build:internal:
agents:build:internal: src/react-agent/utils.ts:8:23 - error TS4094: Property '_separateRunnableConfigFromCallOptionsCompat' of exported anonymous class type may not be private or protected.
agents:build:internal:
agents:build:internal: 8 export async function loadChatModel(fullySpecifiedName: string) {
agents:build:internal:                         ~~~~~~~~~~~~~
agents:build:internal:
agents:build:internal: src/react-agent/utils.ts:8:23 - error TS4094: Property '_streamEventsV1' of exported anonymous class type may not be private or protected.
agents:build:internal:
agents:build:internal: 8 export async function loadChatModel(fullySpecifiedName: string) {
agents:build:internal:                         ~~~~~~~~~~~~~
agents:build:internal:
agents:build:internal: src/react-agent/utils.ts:8:23 - error TS4094: Property '_streamEventsV2' of exported anonymous class type may not be private or protected.
agents:build:internal:
agents:build:internal: 8 export async function loadChatModel(fullySpecifiedName: string) {
agents:build:internal:                         ~~~~~~~~~~~~~
agents:build:internal:
agents:build:internal: src/react-agent/utils.ts:8:23 - error TS4094: Property '_streamLog' of exported anonymous class type may not be private or protected.
agents:build:internal:
agents:build:internal: 8 export async function loadChatModel(fullySpecifiedName: string) {
agents:build:internal:                         ~~~~~~~~~~~~~
agents:build:internal:
agents:build:internal: src/react-agent/utils.ts:8:23 - error TS4094: Property '_transformStreamWithConfig' of exported anonymous class type may not be private or protected.
agents:build:internal:
agents:build:internal: 8 export async function loadChatModel(fullySpecifiedName: string) {
agents:build:internal:                         ~~~~~~~~~~~~~
agents:build:internal:
agents:build:internal: src/react-agent/utils.ts:8:23 - error TS4094: Property 'lc_runnable' of exported anonymous class type may not be private or protected.
agents:build:internal:
agents:build:internal: 8 export async function loadChatModel(fullySpecifiedName: string) {
agents:build:internal:                         ~~~~~~~~~~~~~
agents:build:internal:
agents:build:internal:
agents:build:internal: Found 17 errors in the same file, starting at: src/react-agent/utils.ts:8
Originally created by @benjamincburns on GitHub (Mar 20, 2025). Original GitHub issue: https://github.com/langchain-ai/create-agent-chat-app/issues/20 After working around #19, I ran `npm run install`. It produced the following errors: ``` agents:build:internal: src/react-agent/utils.ts:8:23 - error TS2742: The inferred type of 'loadChatModel' cannot be named without a reference to '../../../../node_modules/@langchain/core/dist/caches/base.js'. This is likely not portable. A type annotation is necessary. agents:build:internal: agents:build:internal: 8 export async function loadChatModel(fullySpecifiedName: string) { agents:build:internal: ~~~~~~~~~~~~~ agents:build:internal: agents:build:internal: src/react-agent/utils.ts:8:23 - error TS2742: The inferred type of 'loadChatModel' cannot be named without a reference to '../../../../node_modules/@langchain/core/dist/load/map_keys.js'. This is likely not portable. A type annotation is necessary. agents:build:internal: agents:build:internal: 8 export async function loadChatModel(fullySpecifiedName: string) { agents:build:internal: ~~~~~~~~~~~~~ agents:build:internal: agents:build:internal: src/react-agent/utils.ts:8:23 - error TS2742: The inferred type of 'loadChatModel' cannot be named without a reference to '../../../../node_modules/@langchain/core/dist/load/serializable.js'. This is likely not portable. A type annotation is necessary. agents:build:internal: agents:build:internal: 8 export async function loadChatModel(fullySpecifiedName: string) { agents:build:internal: ~~~~~~~~~~~~~ agents:build:internal: agents:build:internal: src/react-agent/utils.ts:8:23 - error TS2742: The inferred type of 'loadChatModel' cannot be named without a reference to '../../../../node_modules/@langchain/core/dist/messages/tool.js'. This is likely not portable. A type annotation is necessary. agents:build:internal: agents:build:internal: 8 export async function loadChatModel(fullySpecifiedName: string) { agents:build:internal: ~~~~~~~~~~~~~ agents:build:internal: agents:build:internal: src/react-agent/utils.ts:8:23 - error TS2742: The inferred type of 'loadChatModel' cannot be named without a reference to '../../../../node_modules/@langchain/core/dist/runnables/base.js'. This is likely not portable. A type annotation is necessary. agents:build:internal: agents:build:internal: 8 export async function loadChatModel(fullySpecifiedName: string) { agents:build:internal: ~~~~~~~~~~~~~ agents:build:internal: agents:build:internal: src/react-agent/utils.ts:8:23 - error TS2742: The inferred type of 'loadChatModel' cannot be named without a reference to '../../../../node_modules/@langchain/core/dist/tracers/base.js'. This is likely not portable. A type annotation is necessary. agents:build:internal: agents:build:internal: 8 export async function loadChatModel(fullySpecifiedName: string) { agents:build:internal: ~~~~~~~~~~~~~ agents:build:internal: agents:build:internal: src/react-agent/utils.ts:8:23 - error TS4058: Return type of exported function has or is using name 'EventStreamCallbackHandlerInput' from external module "/Users/bburns/projects/demos/npm-test-2/node_modules/langchain/dist/chat_models/universal" but cannot be named. agents:build:internal: agents:build:internal: 8 export async function loadChatModel(fullySpecifiedName: string) { agents:build:internal: ~~~~~~~~~~~~~ agents:build:internal: agents:build:internal: src/react-agent/utils.ts:8:23 - error TS4094: Property '_callWithConfig' of exported anonymous class type may not be private or protected. agents:build:internal: agents:build:internal: 8 export async function loadChatModel(fullySpecifiedName: string) { agents:build:internal: ~~~~~~~~~~~~~ agents:build:internal: agents:build:internal: src/react-agent/utils.ts:8:23 - error TS4094: Property '_encoding' of exported anonymous class type may not be private or protected. agents:build:internal: agents:build:internal: 8 export async function loadChatModel(fullySpecifiedName: string) { agents:build:internal: ~~~~~~~~~~~~~ agents:build:internal: agents:build:internal: src/react-agent/utils.ts:8:23 - error TS4094: Property '_getOptionsList' of exported anonymous class type may not be private or protected. agents:build:internal: agents:build:internal: 8 export async function loadChatModel(fullySpecifiedName: string) { agents:build:internal: ~~~~~~~~~~~~~ agents:build:internal: agents:build:internal: src/react-agent/utils.ts:8:23 - error TS4094: Property '_separateRunnableConfigFromCallOptions' of exported anonymous class type may not be private or protected. agents:build:internal: agents:build:internal: 8 export async function loadChatModel(fullySpecifiedName: string) { agents:build:internal: ~~~~~~~~~~~~~ agents:build:internal: agents:build:internal: src/react-agent/utils.ts:8:23 - error TS4094: Property '_separateRunnableConfigFromCallOptionsCompat' of exported anonymous class type may not be private or protected. agents:build:internal: agents:build:internal: 8 export async function loadChatModel(fullySpecifiedName: string) { agents:build:internal: ~~~~~~~~~~~~~ agents:build:internal: agents:build:internal: src/react-agent/utils.ts:8:23 - error TS4094: Property '_streamEventsV1' of exported anonymous class type may not be private or protected. agents:build:internal: agents:build:internal: 8 export async function loadChatModel(fullySpecifiedName: string) { agents:build:internal: ~~~~~~~~~~~~~ agents:build:internal: agents:build:internal: src/react-agent/utils.ts:8:23 - error TS4094: Property '_streamEventsV2' of exported anonymous class type may not be private or protected. agents:build:internal: agents:build:internal: 8 export async function loadChatModel(fullySpecifiedName: string) { agents:build:internal: ~~~~~~~~~~~~~ agents:build:internal: agents:build:internal: src/react-agent/utils.ts:8:23 - error TS4094: Property '_streamLog' of exported anonymous class type may not be private or protected. agents:build:internal: agents:build:internal: 8 export async function loadChatModel(fullySpecifiedName: string) { agents:build:internal: ~~~~~~~~~~~~~ agents:build:internal: agents:build:internal: src/react-agent/utils.ts:8:23 - error TS4094: Property '_transformStreamWithConfig' of exported anonymous class type may not be private or protected. agents:build:internal: agents:build:internal: 8 export async function loadChatModel(fullySpecifiedName: string) { agents:build:internal: ~~~~~~~~~~~~~ agents:build:internal: agents:build:internal: src/react-agent/utils.ts:8:23 - error TS4094: Property 'lc_runnable' of exported anonymous class type may not be private or protected. agents:build:internal: agents:build:internal: 8 export async function loadChatModel(fullySpecifiedName: string) { agents:build:internal: ~~~~~~~~~~~~~ agents:build:internal: agents:build:internal: agents:build:internal: Found 17 errors in the same file, starting at: src/react-agent/utils.ts:8 ```
yindo closed this issue 2026-02-16 08:17:11 -05:00
yindo changed title from Code doesn't build immediately after running `create-agent-chat-app` to [GH-ISSUE #20] Code doesn't build immediately after running `create-agent-chat-app` 2026-06-05 17:18:25 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/create-agent-chat-app#11