Rafał Kuźmiński
08/16/2023, 3:54 PMRobert Jaros
08/16/2023, 3:56 PMArtem Kobzar
08/16/2023, 3:57 PMRafał Kuźmiński
08/16/2023, 3:59 PMTypeError: Cannot read properties of undefined (reading 'getSource')
at Map.getSource (presentation.js:102:3642821)"
Where getSource is part of Mapbox library and it checks map.style and then invoking getSource method:
getSource(t) { return this.style.getSource(t) }
Rafał Kuźmiński
08/16/2023, 3:59 PMRafał Kuźmiński
08/16/2023, 4:01 PMRobert Jaros
08/16/2023, 4:01 PMRafał Kuźmiński
08/16/2023, 4:03 PMRobert Jaros
08/16/2023, 4:05 PMkotlin-js-store/yarn.lock
is probably generated on both builders - just compare to be sure they are the sameRafał Kuźmiński
08/16/2023, 4:06 PMVampire
08/16/2023, 4:09 PMkotlin-js-store/yarn.lock
should make sure the same npm lib versions are used everwhere and if a run would produce a different lock file it would even fail, wouldn't it? So I'd really wonder if it is npm library versions, unless the configuration option to always overwrite the yarn.lock
is set.Rafał Kuźmiński
08/16/2023, 4:10 PMRobert Jaros
08/16/2023, 4:10 PM.gitignore
Rafał Kuźmiński
08/16/2023, 4:11 PMRafał Kuźmiński
08/16/2023, 4:11 PMVampire
08/16/2023, 4:12 PMRafał Kuźmiński
08/16/2023, 4:15 PMVampire
08/16/2023, 4:20 PMyarn.lock
support is there.
Iirc for the libs you depend on directly it is enough as Gradle uses exactly those versions, but in npm-world it is very common to depend on ranges instead of concrete versions, so you get different version of the transitive dependencies over time and the lock-file prevents that unless you manually decide to update those versions.
It is like depending on version ranges in the JVM world and then not using the Gradle lockfile to make your builds reproducible by not getting new versions over time that might break things.Rafał Kuźmiński
08/16/2023, 4:22 PMRafał Kuźmiński
08/16/2023, 4:23 PMVampire
08/16/2023, 4:23 PMRafał Kuźmiński
08/16/2023, 4:25 PMRafał Kuźmiński
08/16/2023, 4:25 PMRobert Jaros
08/16/2023, 4:29 PMRafał Kuźmiński
08/16/2023, 4:37 PM