https://serverless-stack.com/ logo
#help
Title
# help
y

Yeltrah

01/07/2022, 2:01 PM
Is there a way to get more information regarding the error?
d

Davide Ungari

01/07/2022, 3:41 PM
You can always go into 
node_modules
 folder and add a console.log where you need.
y

Yeltrah

01/07/2022, 11:57 PM
Yea I checked some more and was able to get this error out put
Copy code
Error: Command failed: node /Users/hartley/Sites/palqee_website/node_modules/@serverless-stack/resources/assets/NextjsSite/build.js --path /Users/hartley/Sites/palqee_website/src --output /Users/hartley/Sites/palqee_website/.build/src-1641599383855 --config eyJjd2QiOiIvVXNlcnMvaGFydGxleS9TaXRlcy9wYWxxZWVfd2Vic2l0ZS9zcmMiLCJhcmdzIjpbImJ1aWxkIl19
I ran this command from the root app and it worked without issues
With some additional console logs I can see the following error
Copy code
builder.build error: Error: Command failed with ENOENT: ./node_modules/.bin/next build
spawn ./node_modules/.bin/next ENOENT
I deleted and reinstalled
node_modules
. I’m using node version
14.18.2
and next is working successfully.
My next version is
12.0.7
is there a specific version I should be using?
f

Frank

01/25/2022, 6:52 PM
Hey @Yeltrah r u still running into this issue?
y

Yeltrah

01/28/2022, 12:52 AM
Hey @Frank, thanks for following up. I was able to get this working
42 Views