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

Karolis Stulgys

04/17/2022, 7:06 PM
Copy code
The engine "node" is incompatible with this module. Expected version "^12.22.0 || ^14.16.0 || >=16.0.0". Got "14.15.4"
Running buld in seed.run. How to fix this? From where does it pick that node version (14.15.4)?
r

Ross Coundon

04/17/2022, 8:09 PM
You can set the version of node in your seed.yml file
k

Karolis Stulgys

04/17/2022, 8:22 PM
Copy code
There was a problem building the "Site" NextjsSite.
Failed to store notices in the cache: Error: ENOENT: no such file or directory, open '/root/.cdk/cache/notices.json'
Failed to get tree.json file: Error: .build/cdk.out/tree.json: ENOENT: no such file or directory, open '.build/cdk.out/tree.json'
There was an error synthesizing your app.
error Command failed with exit code 1.
info Visit <https://yarnpkg.com/en/docs/cli/run> for documentation about this command.
ERROR: spawn ./node_modules/.bin/next ENOENT
my next js app is in
src/frontend
r

Ross Coundon

04/17/2022, 8:25 PM
I’ve seen the …tree.json error before but it’s never caused a failed build for me. Sorry, I’m not familiar with nextJs
k

Karolis Stulgys

04/17/2022, 8:51 PM
6 Views