Replies: 6 comments
-
Have you tried |
Beta Was this translation helpful? Give feedback.
-
Hi @zerda-ocm, thank you for the suggestion. I tried [!] RollupError: Could not resolve "../../staging/maplibregl/shared" from "build/rollup/maplibregl.js" |
Beta Was this translation helpful? Give feedback.
-
I can't reproduce this error. I can start the server after a rebuild without any problems. |
Beta Was this translation helpful? Give feedback.
-
Oh, I forgot: I don't delete staging/ as I don't think it is necessary. Maybe it is just a caching problem within the browser? |
Beta Was this translation helpful? Give feedback.
-
Staging is important, don't delete it. |
Beta Was this translation helpful? Give feedback.
-
As for changing the code, make sure you refresh the browser and avoid cache issues as the names of the files don't change so browsers may cache the build artifacts. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
I'm currently prototyping a new feature for MapLibre (an experimental new source type). I pulled down the repo, however I'm not seeing any documentation on how to build MapLibre locally, and I'm a bit confused by how it's working so far.
What I've tried is:
npm run start
src/source/source.ts
)staging/
staging/
and re-runnpm run start
RollupError: Could not resolve "../../staging/maplibregl/shared" from "build/rollup/maplibregl.js"
I'm quite confused on what the role of the
staging/
folder is and why I'm getting what seems to be not-quite-deterministic behavior fromnpm run start
. That is, sometimes it seems to generatestaging/
for me, but if I delete it it won't regenerate it?I'm really excited to work on a potential new feature for MapLibre and it would be super helpful if anyone can straighten me out on how to get started. I would be happy to submit a PR once I know the ropes a bit better!
Beta Was this translation helpful? Give feedback.
All reactions