sensiolabs / AssetMapperTypeScriptBundle

MIT License
28 stars 8 forks source link

Requiring library doesn't add all dependencies #49

Closed MrDach closed 1 month ago

MrDach commented 1 month ago

I'm experiencing basically the same issue as this guy: https://github.com/openlayers/openlayers/issues/16024

On top of that I had to download all the dependencies myself. Running ìmportmap:require ol only downloads the base file. To get the additional file for the following imports, I had to add each of them manually:

import Map from 'ol/Map';
import View from 'ol/View';
import TileLayer from 'ol/layer/Tile';
import XYZ from 'ol/source/XYZ';

However after doing all of that I'm still getting the aforementioned error. I could be wrong, but it seems like running importmap:require ol/View downloads the wrong file. Comparing the view file to the one found here at least seems to confirm that https://www.npmjs.com/package/ol?activeTab=code

maelanleborgne commented 1 month ago

Hi, this looks like an AssetMapper related problem, so I'd suggest you post your issue on the Symfony Issue Tracker to get answers to your problem. I'll close this one.