Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incompatible version error on clutch-custom-gateway builds #2874

Closed
tdeheurles opened this issue Dec 26, 2023 · 1 comment · Fixed by #2892
Closed

Incompatible version error on clutch-custom-gateway builds #2874

tdeheurles opened this issue Dec 26, 2023 · 1 comment · Fixed by #2892
Labels
type: bug Something isn't working

Comments

@tdeheurles
Copy link

Hey 👋

Description
I'm following the Development/Feature.Development tutorial.
The 3 first parts works fine.
At the 4th, I have an issue running the make.
If I use node version 16, the build fail asking for 18, and if I use 18, the build fail asking for 16.

Expected Behavior
The scaffolding shouldn't fail :-)

Actual Behavior

❯ nvm use v16
Now using node v16.14.0 (npm v8.3.1)
❯ make scaffold-workflow
cd tools/scaffolding && go run scaffolder.go -m frontend-plugin
2023/12/26 11:56:44 Welcome!
*** Analyzing environment...

*** Based on your environment, we've picked the following destination for your new workflow:
> ~/repositories/clutch/frontend/workflows
Is this okay? [Y/n]: n
Enter the destination folder [~/repositories/clutch/frontend/workflows]: ~/repositories/clutch-custom-gateway/frontend/workflows
Is this a wizard workflow? [Y/n]: Y
Enter the name of this workflow [Hello World]: Amiibo
Enter a description of the workflow [Greet the world]: Lookup all Amiibo by name
Enter the developer's name [asura]:
Enter the developer's email [[email protected]]:

...

warning @clutch-sh/tools > react-scripts > workbox-webpack-plugin > workbox-build > @rollup/plugin-replace > magic-string > [email protected]: Please use @jridgewell/sourcemap-codec instead
[3/5] Fetching packages...
error [email protected]: The engine "node" is incompatible with this module. Expected version ">=18". Got "16.14.0"
warning [email protected]: The engine "pnpm" appears to be invalid.
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

2023/12/26 11:58:38 `yarn --frozen-lockfile` returned the above error
exit status 1
make: *** [Makefile:151: scaffold-workflow] Error 1

or

❯ nvm use v18
Now using node v18.6.0 (npm v8.13.2)
❯ make scaffold-workflow
cd tools/scaffolding && go run scaffolder.go -m frontend-plugin
2023/12/26 12:01:11 Welcome!
*** Analyzing environment...

*** Based on your environment, we've picked the following destination for your new workflow:
> ~/repositories/clutch/frontend/workflows
Is this okay? [Y/n]: n
Enter the destination folder [~/repositories/clutch/frontend/workflows]: ~/repositories/clutch-custom-gateway/frontend/workflows
Is this a wizard workflow? [Y/n]: Y
Enter the name of this workflow [Hello World]: Amiibo
Enter a description of the workflow [Greet the world]: Lookup all Amiibo by name
Enter the developer's name [asura]:
Enter the developer's email [[email protected]]:

...

2023/12/26 12:02:17 cd /tmp/clutch-scaffolding-522436709 && /home/asura/repositories/Charlie/demo4/clutch/build/bin
/yarn.sh --frozen-lockfile && ~/repositories/clutch/build/bin/yarn.sh tsc &&  ~/repositories/clutch/build/bin/yarn.sh compile
yarn install v1.22.11
info No lockfile found.
[1/5] Validating package.json...
error @clutch-sh/[email protected]: The engine "node" is incompatible with this module. Expected version ">=16.0.0 <17". Got "18.6.0"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

2023/12/26 12:02:17 `yarn --frozen-lockfile` returned the above error
exit status 1
make: *** [Makefile:151: scaffold-workflow] Error 1

Version
Clutch sha is a76909a

@tdeheurles
Copy link
Author

thanks 👋

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant