You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
minor #10947 feat(encore): IDE Integration (Kocal)
This PR was merged into the 3.4 branch.
Discussion
----------
feat(encore): IDE Integration
This PR add a new entry in the FAQ page of Encore, which explains how to integrate Webpack/Encore in an IDE.
Refs: symfony/webpack-encore#236 & symfony/webpack-encore#500
Ping @Lyrkan
Let me know if I should modify things, thanks.
Commits
-------
d8ca065 feat(encore): ide integration
Some IDE (like `PhpStorm <https://www.jetbrains.com/help/phpstorm/using-webpack.html>`_) can read and interpret your ``webpack.config.js`` file
145
+
to make your development easier (e.g.: aliases resolution).
146
+
147
+
However, you could face the following error:
148
+
149
+
.. code-block:: text
150
+
151
+
Error details: Encore.setOutputPath() cannot be called yet because the runtime environment doesn't appear to be configured. Make sure you're using the encore executable or call Encore.configureRuntimeEnvironment() first if you're purposely not calling Encore directly.
152
+
153
+
It fails because Encore Runtime Environment is only configured when you are running it (e.g. ``yarn encore dev``).
154
+
155
+
To properly fix it, you should manually call ``Encore.isRuntimeEnvironmentConfigured()`` and ``Encore.configureRuntimeEnvironment()``:
0 commit comments