-
Notifications
You must be signed in to change notification settings - Fork 108
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
PhantomJS 2.1.1 (Windows 7 0.0.0) ERROR ReferenceError: Can't find variable: Map #224
Comments
Have you included a polyfill for |
yes, tries core-js and es6-shim. the issue is that the error came from this piece of code on karma-typescript bundle:
any ideas? |
How are you loading the polyfill, with an import/require in your code or in the Karma config file list? Is the polyfill present in the bundle? |
i using it in the files
and this:
also tried to use core-js in same way... actually, i cant find es6-shim.js code in the bundle (see attached) thank you for the response! |
If you're specifying the polyfill in the files section it will be loaded in the browser by Karma directly, it won't get bundled, which is expected behavior. In what order are you listing the files, is the polyfill listed before all the rest? Does Karma complain about not finding the file? |
the polyfill is first. how can i check if the file loaded to the browser? |
Are you able to new up an instance of |
gave up phantomJS and went for ChromeHeadless: karma.conf.js
tsconfig.json
package.json
so...after making the changes i got this:
i obviously installed not clear to me why he complain about it... |
@mulmulovich, were you able to solve your issues? |
after upgrading typescript to 2.6.2 this error came:
Map is lodash Map declared under
@types/lodash
i'm using:
please advise if its a bug or i missing some configuration
The text was updated successfully, but these errors were encountered: