Comments (9)
You likely need to modify your Babel settings for the angular app. The const
is only distributed in the es module format and not in the iife or umd outputs.
from v3-utility-library.
@jpoehnelt How can this be done? I'm running into the same problem.
from v3-utility-library.
How are you building your app? webpack, rollup?
from v3-utility-library.
How are you building your app? webpack, rollup?
Angular 9 using the CLI, so there is no ejected Webpack configuration.
from v3-utility-library.
@jpoehnelt The new release does not fix compatibility with IE11, since the package still uses classes, which are not supported in ES5. I think transpiling the code to ES5 will be the only solution here.
from v3-utility-library.
Can you share your tsconfig?
from v3-utility-library.
target
By default, the target is es2015, which is supported only in modern browsers. You can configure the target to es5 to specifically support legacy browsers. Differential loading is also provided by the Angular CLI to support modern, and legacy browsers with separate bundles.
https://angular.io/guide/typescript-configuration#target
You likely need to adjust the target for tsconfig to fully support ie11. I believe that the default is ES2015(ES6) for angular right now.
from v3-utility-library.
My target is set to es5
, that is not the problem. The usage of classes in the library gives the error, since the library is not affected by the TypeScript target.
TSConfig:
{
"compileOnSave": false,
"compilerOptions": {
"downlevelIteration": true,
"outDir": "./dist/out-tsc",
"sourceMap": true,
"declaration": false,
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es5",
"typeRoots": [
"node_modules/@types"
],
"lib": [
"es2017",
"dom",
"esnext"
],
"module": "es2015",
"baseUrl": "./"
}
}
from v3-utility-library.
The usage of classes in the library gives the error, since the library is not affected by the TypeScript target.
At this point, I would suggest asking this on StackOverflow or similar. Please post back here with the question and your answer.
from v3-utility-library.
Related Issues (20)
- Please make imagePath accept dataURL. HOT 3
- hi is there any possibility use svg image as cluster image and change color of it for each cluster? please suggest me HOT 1
- Cluster "explode" animation HOT 2
- Use MarkerClusterPlus in react web HOT 4
- Marker cluster stuck on map in google maps JS API (version 3.39) HOT 1
- Required File: .github/CODEOWNERS HOT 1
- Required File: .github/CODEOWNERS HOT 1
- How to install from npm? HOT 3
- Issue of styles.textLineHeight does not sets the value
- MarkerWithLabels: Getting error "this.setValues is not a function" HOT 13
- How to get and display all markers of current viewport while map drag or zoom. HOT 4
- Missing Map Ids functionality HOT 2
- MarkerClusterer - sporadically fitMapToMarkers() not panning correctly HOT 1
- @googlemaps/loader: this.callback is not a function HOT 2
- MarkerClusterPlus - fitMapToMarkers - add argument for bounds padding HOT 2
- Use RouteBoxer without google maps library HOT 2
- Won't install using npm on win10 HOT 4
- @googlemaps/jest-mocks - `getClickableIcons` method missing in class `Map_`
- Support for @types/google.maps
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from v3-utility-library.