File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 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`_:
188188
189189 $ php bin/console importmap:require bootstrap
190190
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+
191196This adds the ``bootstrap `` package to your ``importmap.php `` file::
192197
193198 // importmap.php
@@ -207,6 +212,8 @@ This adds the ``bootstrap`` package to your ``importmap.php`` file::
207212 such as ``@popperjs/core ``. The ``importmap:require `` command will add both the
208213 main package *and * its dependencies. If a package includes a main CSS file,
209214 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 `.
210217
211218Now you can import the ``bootstrap `` package like usual:
212219
You can’t perform that action at this time.
0 commit comments