-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
VectorLayers are not working #10870
Comments
Until all our dependencies come packaged as ES modules (like OpenLayers does already), you'll have to use a bundler. No need to transpile though. |
After reading #8974, I think I understand it. But can you explain why src/structs/RBush.js also uses this import: "import RBush_ from 'rbush/rbush.js';" |
If we import the untranspiled file, then users have to configure their bundlers to transpile dependencies, which is not common practice. |
Yes but I'm talking about the untranspiled es6 modules in src/ . |
That might be doable. If you have any idea how (e.g. with a change in |
I don't think that is possible with an change in de tsconfig-build. And for now I do not have another idea. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Describe the bug
VectorLayers are not working in a Polymer 3 project.
This is not working after this change: #10385
Polymer serve gives an error in the console. TypeError: _rbush.default is not a constructor
I don't think it is good to use transpiled files: (https://www.polymer-project.org/blog/2018-05-02-roadmap-faq#dependencies-not-compatible-with-the-native-module-loader)
To Reproduce
Expected behavior
Seeing a map.
The text was updated successfully, but these errors were encountered: