-
Notifications
You must be signed in to change notification settings - Fork 12k
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
Getting 'Map' is undefined error. #3309
Comments
I think I know the reason for this. It's true that you have The solution is to add es6-shim to scripts instead of |
Also related to #2752 |
@filipesilva thank you for the response. Your explanation really helped me to confirm my assumption of what was causing the error. I am wondering why script arrays are loaded before polyfills. In the documentation, it's recommended to have those 3rd party libraries in the scripts array. But there are some libraries that depend on the polyfills such as |
Polyfills found in polyfills.ts would not be available for scripts due to being loaded in the main bundle only. Fix angular#2752 Fix angular#3309
Polyfills found in polyfills.ts would not be available for scripts due to being loaded in the main bundle only. Fix angular#2752 Fix angular#3309
Polyfills found in polyfills.ts would not be available for scripts due to being loaded in the main bundle only. Fix angular#2752 Fix angular#3309
Polyfills found in polyfills.ts would not be available for scripts due to being loaded in the main bundle only. Fix angular#2752 Fix angular#3309
Polyfills found in polyfills.ts would not be available for scripts due to being loaded in the main bundle only. Fix angular#2752 Fix angular#3309
Polyfills found in polyfills.ts would not be available for scripts due to being loaded in the main bundle only. Fix angular#2752 Fix angular#3309
Polyfills found in polyfills.ts would not be available for scripts due to being loaded in the main bundle only. Fix angular#2752 Fix angular#3309
Polyfills found in polyfills.ts would not be available for scripts due to being loaded in the main bundle only. Fix angular#2752 Fix angular#3309
Polyfills found in polyfills.ts would not be available for scripts due to being loaded in the main bundle only. Fix angular#2752 Fix angular#3309
Polyfills found in polyfills.ts would not be available for scripts due to being loaded in the main bundle only. Fix angular#2752 Fix angular#3309
Polyfills found in polyfills.ts would not be available for scripts due to being loaded in the main bundle only. This PR loads polyfills as a separate entry point, before everything else. Extra documentation also added to polyfills.ts. Fix angular#2752 Fix angular#3309 Fix angular#4140
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
OS?
Versions.
Repro steps.
I am trying to use the custom elements v1 polyfill (custom-elements.min.js) in the angular-cli.json by using the following pattern:
This works across all browsers except IE10. In the console, it says:
Mention any other details that might be useful.
It logs an error when I try to use it in the scripts section of angular-cli.json. The error will be gone and the polyfill will start working fine if I insert es6-shim in the script:
Here I don't want to use
es6-shim
because there iscore-js/es6/map
imported in thepolyfills.ts
file.The log error was pointing at the polyfill (https://github.com/webcomponents/custom-elements/blob/master/custom-elements.min.js).
The text was updated successfully, but these errors were encountered: