Hi, I'm trying to use the template but I get an error related to module resolution. My node version is node 18.16 and my OS is Windows 10.
Process followed:
- Cloned the repository.
- Executed npm install.
- Checked if the example works and it worked.
- Created a folder on src src/foo and created a file src/foo/bar.ts.
- Created some functions using langchain components and exported them.
- Tried to import those functions on src/index.ts.
The error Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean './marko-assistant/assistant.js'?ts(2835)
I tried the suggested solution and it worked but I find it weird.
My tsconfig { "extends": "@tsconfig/recommended", "compilerOptions": { "outDir": "dist", "lib": ["ES2021", "ES2022.Object", "DOM"], "target": "es2017", "module": "nodenext", "sourceMap": true, "allowSyntheticDefaultImports": true, "baseUrl": "./src", "declaration": true, "experimentalDecorators": true, "noImplicitReturns": true, "noFallthroughCasesInSwitch": true, "noUnusedLocals": true, "noUnusedParameters": true, "useDefineForClassFields": true, "strictPropertyInitialization": false }, "exclude": ["node_modules/", "dist/", "tests/"], "include": ["./src"] }
I would thank some guidance, i'm pretty new to this. Really thanks.