-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Release web map core as a NPM module #23
Comments
treetracker-web-map-core/src/Map.js Lines 8 to 11 in 9062118
|
For a temporarily workaround, open the /node_modules/treetracer-web-map-core/src/Map.js and delete the line:
It might be necessary to delete the Then, paste the line above to the js file where we import the |
I am working on a solution to this |
🎉 This issue has been resolved in version 1.0.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
We can not use/import the leaflet css when we installing the core to other project, like the treetracker-web-map-client next.js will throw error:
the reason:
https://nextjs.org/docs/messages/css-npm
Seems because we didn't import the bin/dist of the bundle, we directly import the
src
file in client, please figure out the correct way to install this package/lib to other clients.Some hints:
The text was updated successfully, but these errors were encountered: