Error starting new payload projects #6380
Unanswered
iamrobertsillo
asked this question in
Q&A
Replies: 1 comment
-
I have the same problem let me know if you get an answer |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, whenever I attempt to install and launch a new payload project, I encounter this error. Could someone please assist me in understanding the reason behind this issue? I am new to node.js, npm, and yarn, so an explanation would be greatly appreciated. Thank you.
yarn dev
yarn run v1.13.0
$ cross-env PAYLOAD_CONFIG_PATH=src/payload/payload.config.ts nodemon
[nodemon] 2.0.22
[nodemon] to restart at any time, enter
rs
[nodemon] watching path(s): .
[nodemon] watching extensions: ts
[nodemon] starting
ts-node src/server.ts -- -I
node:internal/modules/cjs/loader:453
throw err;
^
Error: Cannot find module 'C:\Users\rober\Desktop\payload-projects\iamrobertsillotest\node_modules\typescript\lib\typescript.js'. Please verify that the package.json has a valid "main" entry
at tryPackage (node:internal/modules/cjs/loader:445:19)
at Module._findPath (node:internal/modules/cjs/loader:716:18)
at Module._resolveFilename (node:internal/modules/cjs/loader:1131:27)
at Function.resolve (node:internal/modules/helpers:190:19)
at projectLocalResolveHelper (C:\Users\rober\Desktop\payload-projects\iamrobertsillotest\node_modules\ts-node\dist\util.js:117:24)
at resolveCompiler (C:\Users\rober\Desktop\payload-projects\iamrobertsillotest\node_modules\ts-node\dist\configuration.js:232:22)
at resolveAndLoadCompiler (C:\Users\rober\Desktop\payload-projects\iamrobertsillotest\node_modules\ts-node\dist\configuration.js:225:26)
at findAndReadConfig (C:\Users\rober\Desktop\payload-projects\iamrobertsillotest\node_modules\ts-node\dist\configuration.js:48:28)
at phase3 (C:\Users\rober\Desktop\payload-projects\iamrobertsillotest\node_modules\ts-node\dist\bin.js:254:67)
at bootstrap (C:\Users\rober\Desktop\payload-projects\iamrobertsillotest\node_modules\ts-node\dist\bin.js:47:30) {
code: 'MODULE_NOT_FOUND',
path: 'C:\Users\rober\Desktop\payload-projects\iamrobertsillotest\node_modules\typescript\package.json',
requestPath: 'typescript'
}
Node.js v20.13.1
[nodemon] app crashed - waiting for file changes before starting...
Beta Was this translation helpful? Give feedback.
All reactions