-
Notifications
You must be signed in to change notification settings - Fork 161
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
Node 17 built with openssl < 3 does not work with Vaadin 21.0.8+ #12649
Comments
Do you have Node 17 installed? |
@Artur- Yep, seems that way:
|
Reverting to Node 16 seems to have resolved the issue, I found these seemingly-related tickets suggesting it's a compatibility bug between Webpack and Node 17: |
@craigotis did you solve this issue? |
@Artur- any idea? |
How can this be reproduced? If I take a Vaadin 22 project from start.vaadin.com and run it with Node 17.3.0, it works fine |
@Artur- First, sorry about that. And I fixed that issue by changing my node version to 17.3.0. This issue was node version related problem. this has to be closed ... |
To reproduce: Log ends with
and the webpack server will not be running. |
By the way: |
Running this with Node 17.3.0 on a mac results in
|
Artur, this is my output with Vaadin 21.0.7:
And with Vaadin 21.0.8 the output ends with the node error message:
Especially no |
My environment for my last comment:
|
Does |
/usr/bin/node --version |
Not sure what is going on then
should list
and
should fail with "Error: error:0308010C:digital envelope routines::unsupported" and
should work and output
and the same for
|
|
We might need a fix similar to cloudflare/wrangler-legacy@38e32d1 then if it is possible that Node 17 is built with an older openssl |
that seems to be it, node built w/ openssl@1.1 (default for |
I think we should actually skip the version detection completely and instead check using
If that works, then webpack should work. If it fails, then you need the legacy option |
Check if `node -p 'crypto.createHash("md4")'` works. If not, pass the `--openssl-legacy-provider` flag. Workaround for: webpack/webpack#14532 Fixes #12649
Check if `node -p 'crypto.createHash("md4")'` works. If not, pass the `--openssl-legacy-provider` flag. Workaround for: webpack/webpack#14532 Fixes #12649
Check if `node -p 'crypto.createHash("md4")'` works. If not, pass the `--openssl-legacy-provider` flag. Workaround for: webpack/webpack#14532 Fixes #12649
Check if `node -p 'crypto.createHash("md4")'` works. If not, pass the `--openssl-legacy-provider` flag. Workaround for: webpack/webpack#14532 Fixes #12649
Check if `node -p 'crypto.createHash("md4")'` works. If not, pass the `--openssl-legacy-provider` flag. Workaround for: webpack/webpack#14532 Fixes #12649
Check if `node -p 'crypto.createHash("md4")'` works. If not, pass the `--openssl-legacy-provider` flag. Workaround for: webpack/webpack#14532 Fixes #12649
Check if `node -p 'crypto.createHash("md4")'` works. If not, pass the `--openssl-legacy-provider` flag. Workaround for: webpack/webpack#14532 Fixes #12649
…12677) Check if `node -p 'crypto.createHash("md4")'` works. If not, pass the `--openssl-legacy-provider` flag. Workaround for: webpack/webpack#14532 Fixes #12649 Co-authored-by: Johannes Eriksson <joheriks@vaadin.com>
Check if `node -p 'crypto.createHash("md4")'` works. If not, pass the `--openssl-legacy-provider` flag. Workaround for: webpack/webpack#14532 Fixes #12649
Check if `node -p 'crypto.createHash("md4")'` works. If not, pass the `--openssl-legacy-provider` flag. Workaround for: webpack/webpack#14532 Fixes #12649
This ticket/PR has been released with platform 14.8.2. |
This ticket/PR has been released with platform 22.0.3. |
Description of the bug
I downloaded a starter Flow 22 project from https://start.vaadin.com/app/, but a clean project fails on
./mvnw
with:There's no further/more detailed stack trace that I can find.
Expected behavior
The application should start.
Minimal reproducible example
./mvnw
Versions
The text was updated successfully, but these errors were encountered: