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:
144
+
`Webpack integration in PhpStorm`_ and other IDEs makes your development more
145
+
productive (for example by resolving aliases). However, you may face this error:
148
146
149
147
.. code-block:: text
150
148
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``).
149
+
Encore.setOutputPath() cannot be called yet because the runtime environment
150
+
doesn't appear to be configured. Make sure you're using the encore executable
151
+
or call Encore.configureRuntimeEnvironment() first if you're purposely not
152
+
calling Encore directly.
154
153
155
-
To properly fix it, you should manually call ``Encore.isRuntimeEnvironmentConfigured()`` and ``Encore.configureRuntimeEnvironment()``:
154
+
It fails because the Encore Runtime Environment is only configured when you are
155
+
running it (e.g. when executing ``yarn encore dev``). Fix this issue calling to
156
+
``Encore.isRuntimeEnvironmentConfigured()`` and
157
+
``Encore.configureRuntimeEnvironment()`` methods:
156
158
157
159
.. code-block:: javascript
158
160
@@ -163,4 +165,6 @@ To properly fix it, you should manually call ``Encore.isRuntimeEnvironmentConfig
0 commit comments