convertFilter export/import #2120
Unanswered
DanielForniessoria-TomTom
asked this question in
Q&A
Replies: 1 comment
-
You can install and import from @maplibre/maplibre-gl-style-spec |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I found the issue when trying to import "convertFilter" from maplibre-gl. It doesn't seem to be "cleanly" exported, and thus can't be used properly.
The import I can use is
import { convertFilter } from "maplibre-gl/dist/style-spec";
However, when packing my own library, to then use it by another app, that other app gives an error:
Module not found: Error: Can't resolve 'maplibre-gl/dist/style-spec' in '/Users/dafo/projects/go-sdk-js/map/dist'
I wonder if others have also found a similar issue. Am I missing something, or should we add a fix for this in MapLibre?
Beta Was this translation helpful? Give feedback.
All reactions