question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Object doesn't support property or method 'slice'

See original GitHub issue

[...new Set(properties)]

gets to

new Set(l).slice()

in ES5 bundle, which fails in browser, because Set has no slice() method.

Tested in Internet Explorer 11.1069.17134.0.

Used packages:

"dependencies": { "@angular/animations": "^8.2.14", "@angular/cdk": "^8.2.3", "@angular/common": "^8.2.14", "@angular/compiler": "^8.2.14", "@angular/core": "^8.2.14", "@angular/forms": "^8.2.14", "@angular/platform-browser": "^8.2.14", "@angular/platform-browser-dynamic": "^8.2.14", "@angular/router": "^8.2.14", "@ngx-translate/core": "^11.0.1", "@ngx-translate/http-loader": "^4.0.0", "angular-draggable-droppable": "^4.3.8", "array-sort": "^1.0.0", "core-js": "^2.5.7", "lodash": "^4.17.15", "moment": "^2.24.0", "moment-timezone": "^0.5.27", "ngx-cookie-service": "^2.2.0", "primeflex": "^1.0.0", "primeicons": "2.0.0", "primeng": "8.1.1", "rxjs": "^6.5.3", "ts-odata": "0.3.0", "web-animations-js": "^2.3.2", "zone.js": "~0.9.1" }, "devDependencies": { "@angular-devkit/build-angular": "^0.803.19", "@angular/cli": "^8.3.19", "@angular/compiler-cli": "^8.2.14", "@angular/language-service": "^8.2.14", "@fortawesome/fontawesome-free": "^5.11.2", "@types/array-sort": "^1.0.0", "@types/jasmine": "~3.3.8", "@types/jasminewd2": "^2.0.8", "@types/lodash": "^4.14.149", "@types/moment-timezone": "^0.5.12", "@types/node": "~8.9.5", "codelyzer": "^5.1.2", "jasmine-core": "~3.4.0", "jasmine-spec-reporter": "~4.2.1", "karma": "~4.1.0", "karma-chrome-launcher": "~2.2.0", "karma-coverage-istanbul-reporter": "~2.0.1", "karma-jasmine": "~2.0.1", "karma-jasmine-html-reporter": "^1.4.0", "protractor": "^5.4.2", "selenium-webdriver": "^4.0.0-alpha.5", "ts-node": "~7.0.1", "tslint": "~5.20.1", "tslint-eslint-rules": "^5.4.0", "typescript": "~3.5.3", "webpack-bundle-analyzer": "^3.6.0" }

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:7
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
h3llbring0rcommented, Dec 4, 2019

Solved. Source of the problem was dev dependency @angular-devkit/build-angular with version 0.803.19. Changed version to 0.803.20 and now the ES5 bundle is generated with __spread(new Set(l)).

1reaction
MrJithilcommented, Dec 3, 2019

Set doesn’t have 'slice` methods. Please refer MDN for the documentation.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Object doesn't support property or method 'slice' - Stack Overflow
I tried to extract them with the slice() method but it does not work. In console the error is. Object doesn't support property...
Read more >
Error on IE 11: Object doesn't support property or method 'slice ...
Hi there, I am using the pdf-lib library in SPFX list view command set to edit the footer of a PDF using drawtext....
Read more >
Object doesn't support property or method 'slice' - Telerik
I am attempting to implement a Kendo DropDownList with server filtering. I have the following in my view (.cshtml): @(Html.Kendo().
Read more >
Javascript – Object doesn't support property or method 'slice ...
I'm newbie to the Javascript/Jquery world. I have a div with several links and i want to collect the url's . Then i...
Read more >
object doesn't support property or method 'split' in JavaScript
The “object doesn't support property or method ClientContext” issue is caused by the code is running before sp.js is loaded.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found