File tree 1 file changed +7
-0
lines changed 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -188,6 +188,11 @@ to add any `npm package`_:
188
188
189
189
$ php bin/console importmap:require bootstrap
190
190
191
+ .. note ::
192
+
193
+ If you're getting a 404 error, you can contact the package maintainer and ask them to
194
+ include `"main": ` and `"module": ` to the package's `package.json `.
195
+
191
196
This adds the ``bootstrap `` package to your ``importmap.php `` file::
192
197
193
198
// importmap.php
@@ -207,6 +212,8 @@ This adds the ``bootstrap`` package to your ``importmap.php`` file::
207
212
such as ``@popperjs/core ``. The ``importmap:require `` command will add both the
208
213
main package *and * its dependencies. If a package includes a main CSS file,
209
214
that will also be added (see :ref: `Handling 3rd-Party CSS <asset-mapper-3rd-party-css >`).
215
+ If the associated CSS file isn't added to the importmap, you can contact the package
216
+ maintainer and ask them to include `"style": ` to the package's `package.json `.
210
217
211
218
Now you can import the ``bootstrap `` package like usual:
212
219
You can’t perform that action at this time.
0 commit comments