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
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