Skip to content
This repository was archived by the owner on Aug 3, 2023. It is now read-only.
This repository was archived by the owner on Aug 3, 2023. It is now read-only.

node v17.1.0 doesn't accept --openssl-legacy-provider on Arch Linux #2155

@Felixoid

Description

@Felixoid

🐛 Bug report

Describe the bug

wrangler dev and wrangler preview fail to run with error

Reproduce the bug

A list of steps to reproduce the bug.

  1. Install yarn global add @cloudflare/wrangler
  2. Clone https://github.com/ClickHouse/clickhouse-website-worker
  3. Run wrangler preview
  4. See error:
[felixoid@chelix clickhouse-website-worker]$ ~/.yarn/bin/wrangler --version
wrangler 1.19.5
[felixoid@chelix clickhouse-website-worker]$ ~/.yarn/bin/wrangler preview
/usr/bin/node: bad option: --openssl-legacy-provider
Error: failed to execute `"/usr/bin/node" "--openssl-legacy-provider" "/home/felixoid/.cache/.wrangler/wranglerjs-1.19.5" "--output-file=/tmp/.wranglerjs_outputtBWSw" "--wasm-binding=WASM_MODULE" "--webpack-config=webpack.config.js"`: exited with exit status: 9

Expected behavior

I'd be happy to see at least one of rust and nodejs solutions working :-j

Environment and versions

Fill out the following information about your environment.

  • operating system: arch linux
  • output of wrangler -V: wrangler 1.19.5
  • output of node -v: v17.1.0
  • content of wrangler.toml:
name = "clickhouse-website"
type = "webpack"
account_id = "d4fd593eebab2e3a58a599400c4cd64d"
workers_dev = true
webpack_config = "webpack.config.js"
kv-namespaces = [
    { binding = "RATING", id = "11a8aef802fa45b89904113bd4be4566", preview_id = "68b329da9893e34099c7d8ad5cb9c940" },
    { binding = "RATING_PER_IP", id = "bfbab0338f6a47dda76cb37d7c6e556a", preview_id = "d784fa8b6d98d27699781bd9a7cf19f0" }
]

[env.production]
route = "clickhouse.com/*"
zone_id = "4fc6fb1d46e87851605aa7fa69ca6fe0"
kv-namespaces = [
    { binding = "RATING", id = "fab071214bbc4bc8bce73f8986701aec", preview_id = "deb417b8c4566603806f045b931503be" },
    { binding = "RATING_PER_IP", id = "a8e11f15962b49e28c114714872edfb7", preview_id = "2c744dffd279d7e9e0910ce594eb4f4f" }
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions