Module-not-found #5534
Replies: 2 comments 6 replies
-
Hello, @Pratham271! I'm here to assist you with any bugs, questions, or contribution-related matters. Let me know how I can help you! To resolve the "Module not found" error related to "exports": {
...
"./structured_query": {
"types": {
"import": "./structured_query.d.ts",
"require": "./structured_query.d.cts",
"default": "./structured_query.d.ts"
},
"import": "./structured_query.js",
"require": "./structured_query.cjs"
},
...
} Ensure that this configuration is present in the
|
Beta Was this translation helpful? Give feedback.
-
There is no such export because ./structured_query.d.ts, ./structured_query.d.cts, ./structured_query.d.ts does not exist |
Beta Was this translation helpful? Give feedback.
-
Checked other resources
Commit to Help
Example Code
Description
when I am building this project it is giving me the error
Failed to compile.
./node_modules/@langchain/pinecone/dist/translator.js
Module not found: Package path ./structured_query is not exported from package /Users/prathamchauhan/Documents/Next-Projects/pratham-portfolio/node_modules/@langchain/core (see exports field in /Users/prathamchauhan/Documents/Next-Projects/pratham-portfolio/node_modules/@langchain/core/package.json)
https://nextjs.org/docs/messages/module-not-found
Import trace for requested module:
./node_modules/@langchain/pinecone/dist/index.js
./node_modules/@langchain/pinecone/index.js
./src/lib/pineconedb.ts
./src/actions/chat.ts
./src/app/layout.tsx
System Info
npm = 10.7.0
package.json
"@langchain/community": "^0.2.2",
"@langchain/pinecone": "^0.0.6",
"@pinecone-database/pinecone": "^2.2.1",
Beta Was this translation helpful? Give feedback.
All reactions