Skip to content

[Encore] Update note instructing users to upgrade symfony-cli for node.js 17+ tls compatibility #19369

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

Merged
merged 1 commit into from
Jan 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions frontend/encore/dev-server.rst
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,9 @@ server SSL certificate:

.. note::

If you are using Node.js 17 or newer, you have to run the ``dev-server`` command with the
``--openssl-legacy-provider`` option:
If you are using Node.js 17 or newer and ``dev-server`` fails to start with TLS error, the certificate file might be generated by an old version of **symfony-cli**. Upgrade **symfony-cli** to the latest version, delete the old ``~/.symfony5/certs/default.p12`` file, and start symfony server again.

.. code-block:: terminal

$ NODE_OPTIONS=--openssl-legacy-provider npm run dev-server
This generates a new ``default.p12`` file suitable for use with recent Node.js versions.

CORS Issues
-----------
Expand Down