Skip to content

import { PromptTemplate } from "@langchain/core/prompts"; TS2307: Cannot find module @langchain/core/prompts or its corresponding type declarations. IDE is webstorm #9252

@GzRichChen

Description

@GzRichChen

Checked other resources

  • This is a bug, not a usage question. For questions, please use the LangChain Forum (https://forum.langchain.com/).
  • I added a very descriptive title to this issue.
  • I searched the LangChain.js documentation with the integrated search.
  • I used the GitHub search to find a similar question and didn't find it.
  • I am sure that this is a bug in LangChain.js rather than my code.
  • The bug is not resolved by updating to the latest stable version of LangChain (or the specific integration package).

Example Code

import { PromptTemplate } from "@langchain/core/prompts";
TS2307: Cannot find module @langchain/core/prompts or its corresponding type declarations. IDE is webstorm

Error Message and Stack Trace (if applicable)

No response

Description

@langchain/core

System Info

yarn @langchain/core

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions