Hi when I am trying to build my code I am getting an ./build-curriculum’ not found . here is the full stack trace below
Error: Cannot find module ‘./build-curriculum’
Require stack:
- /Users/anishlukkireddy/freeCodeCamp/tools/scripts/build/imaginaryUncacheableRequireResolveScript
at Function.resolveFilename (node:internal/modules/cjs/loader:1394:15)
at Function.resolve (node:internal/modules/helpers:145:19)
at requireResolveNonCached (/Users/anishlukkireddy/freeCodeCamp/node_modules/.pnpm/ts-node@10.9.2@types+node@20.12.8_typescript@5.7.3/node_modules/ts-node/dist/bin.js:549:16)
at getProjectSearchDir (/Users/anishlukkireddy/freeCodeCamp/node_modules/.pnpm/ts-node@10.9.2_@types+node@20.12.8_typescript@5.7.3/node_modules/ts-node/dist/bin.js:519:40)
at phase3 (/Users/anishlukkireddy/freeCodeCamp/node_modules/.pnpm/ts-node@10.9.2_@types+node@20.12.8_typescript@5.7.3/node_modules/ts-node/dist/bin.js:267:27)
at bootstrap (/Users/anishlukkireddy/freeCodeCamp/node_modules/.pnpm/ts-node@10.9.2_@types+node@20.12.8_typescript@5.7.3/node_modules/ts-node/dist/bin.js:47:30)
at main (/Users/anishlukkireddy/freeCodeCamp/node_modules/.pnpm/ts-node@10.9.2_@types+node@20.12.8_typescript@5.7.3/node_modules/ts-node/dist/bin.js:33:12)
at Object. (/Users/anishlukkireddy/freeCodeCamp/node_modules/.pnpm/ts-node@10.9.2_@types+node@20.12.8_typescript@5.7.3/node_modules/ts-node/dist/bin.js:579:5)
at Module._compile (node:internal/modules/cjs/loader:1723:14)
at Object…js (node:internal/modules/cjs/loader:1888:10) {
code: ‘MODULE_NOT_FOUND’,
requireStack: [
‘/Users/anishlukkireddy/freeCodeCamp/tools/scripts/build/imaginaryUncacheableRequireResolveScript’
]
}
I tried the cleaning the workspace and running the commands in the trouble shooting section, deleting the repo and cloning it again, and finally the commands to run for build erros in the trouble shooting section. I think the error might be due to my node and npm version. is that true