8000 minor #18501 [Encore] Webpack Dev Server & Symfony CLI HTTPS: add not… · symfony/symfony-docs@e094be3 · GitHub
[go: up one dir, main page]

Skip to content

Commit e094be3

Browse files
committed
minor #18501 [Encore] Webpack Dev Server & Symfony CLI HTTPS: add note for Node 17+ (jmsche)
This PR was merged into the 5.4 branch. Discussion ---------- [Encore] Webpack Dev Server & Symfony CLI HTTPS: add note for Node 17+ A little note required to run Webpack Dev Server with Symfony CLI + its HTTPS certificate using Node.js 17+. Related issue on Webpack Encore: symfony/webpack-encore#1187 Credits to `@fracsi` for the "fix" :) Commits ------- 0ec56cd [Encore] Webpack Dev Server & Symfony CLI HTTPS: add note for Node 17+
2 parents cb7247a + 0ec56cd commit e094be3

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

frontend/encore/dev-server.rst

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ method in your ``webpack.config.js`` file:
5858
})
5959
;
6060
61-
6261
Enabling HTTPS using the Symfony Web Server
6362
-------------------------------------------
6463

@@ -84,6 +83,19 @@ server SSL certificate:
8483
+ }
8584
+ })
8685
86+
.. note::
87+
88+
If you are using Node.js 17 or newer, you have to run the ``dev-server`` command with the
89+
``--openssl-legacy-provider`` option:
90+
91+
.. code-block:: terminal
92+
93+
# if you use the Yarn package manager
94+
$ NODE_OPTIONS=--openssl-legacy-provider yarn encore dev-server
95+
96+
# if you use the npm package manager
97+
$ NODE_OPTIONS=--openssl-legacy-provider npm run dev-server
98+
8799
CORS Issues
88100
-----------
89101

0 commit comments

Comments
 (0)
0