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
SCRIPT438: Object doesn't support property or method 'assign' #18588
Comments
There should be no This guide has some general information about polyfills. The gist of it is that you somehow need to include the script in your application, before the code that relies on the polyfilled feature runs. How you do that is specific to your build process. (In your case, maybe you need to adjust the order in which scripts are included in the vendor bundle, to make sure the polyfill comes before Angular. Again it is hard to tell without seeing the actual code.) I am going to close this as non-actionable, but feel free to continue the discussion below if you have further questions. |
Hi, So I updated my package:
This is my webpack.config.vendor.js:
I put this a the top of the vendor generation: I read core-js could help, and i saw polyfill, so maybe it s the polyfill i need for Object.Assign? I still have the problem. Do you have some idea to solve the pb? |
|
hi, i hava same problem |
Same here |
Same issue, I've added polyfills.ts manually from https://raw.githubusercontent.com/addyosmani/todomvc-angular-4/master/src/polyfills.ts |
I have the same issue. Inspecting my file in node_modules/@angular/common/@angular/common.es5.js with "@license Angular v4.4.4" in the header, this contains the line 3084: |
Apparently, there was bundling bug that caused But as mentioned in the docs, you should be using an ES2015 polyfill on browsers that do not support it natively, which includes |
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. |
Hi,
I have this Error on IE 11:
I m using Asp.Net Core 1.1 + Angular 4 + Webpack
This is my package.json:
So I made some search:
#16286
http://2ality.com/2014/01/object-assign.html
https://www.npmjs.com/package/object-assign
https://www.npmjs.com/package/es6-object-assign
I understand that Object.Assign is not supported by IE, I understand i need a polyfill.
I don t understand what is a polyfill and how to install it to resolve the problem.
I try to npm install --save es6-object-assign then added it in webpack.config.vendor.js then execute webpack --config webpack.config.vendor.js
Same with npm install --save object-assign
So maybe you have a solution?
The text was updated successfully, but these errors were encountered: