Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.

'WeakMap' is undefined #891

Closed
im1dermike opened this issue Apr 24, 2017 · 7 comments
Closed

'WeakMap' is undefined #891

im1dermike opened this issue Apr 24, 2017 · 7 comments

Comments

@im1dermike
Copy link

I just tried to open up my application generated using this tool in IE10 and I get the following error in my browser console:

SCRIPT5009: 'WeakMap' is undefined
vendor.js, line 112874 character 1

It seems to trace to this thread, but the only references to "WeakMap" in this solution is in \dist\main-client.js and \dist\vendor.js so I'm unclear on how to resolve it.

@SteveSandersonMS
Copy link
Member

If you need IE10 support, please install core-js/shim as described here: #854 (comment)

As for making things work out of the box, we have an issue tracking IE9-11 support here: #484

@im1dermike
Copy link
Author

@SteveSandersonMS Thanks for your replied. I installed corejs and added import 'core-js/shim'; to the top of my boot-client.ts file, but now I get a "Can't resolve 'core-js/shim'" error.

@SteveSandersonMS
Copy link
Member

SteveSandersonMS commented May 2, 2017

@im1dermike Then I don't know why that would happen - it should be possible to resolve core-js/shim. I'm afraid you'll have to track that down yourself :(

@im1dermike
Copy link
Author

@SteveSandersonMS Should I be running:

npm install --save corejs

as described in Issue 854 or

npm install --save core-js

@SteveSandersonMS
Copy link
Member

Ah yes, that's it - it's core-js and not corejs. I've updated the comment in #854 to match. Well spotted!

@im1dermike
Copy link
Author

im1dermike commented May 2, 2017

@SteveSandersonMS Oof. Now I'm getting the following error in IE:

SCRIPT5022: Error: DI Error
vendor.js, line 104835 character 13

Works fine in other browsers. Anything you can do to point me in the right direction?

@idenev
Copy link

idenev commented May 5, 2017

I can confirm the issue with IE. Following the shim installation, DI error is in place. Looking forward for possible solution.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants