less / less/less.js

TypeError in Internet Explorer 11 because Object.assign doesn't exist there

Open
#3,321 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug low priority
Dominant language
JavaScript
Stars
17k
Forks
3.4k
Avg merge
7h 42m
Merged PRs (30d)
26

Description

I'm using less.js version 3.8.1 in the Browser for local development (less.min.js from /dist from the 3.8.1 Release Source Zip), and in Internet Explorer 11 it throws a TypeError because Object.assign doesn't exist there. http://lesscss.org/usage/ says that IE11+ should be supported. Polyfilling Object.assign makes less.js work in Internet Explorer 11 as well.

Earlier Versions (upgraded from less.js 2.7.1) worked fine in IE.

image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the less.min.js bundle in /dist from the 3.8.1 release source and reproduce the TypeError in Internet Explorer 11. Check how Object.assign is used in the browser build; done means the distributed browser bundle works in IE11 without requiring a separate polyfill, while preserving current browser support.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.