lukeed / lukeed/dimport

IE11 - Syntax Error - undefined//app.js

Open
#6 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
546
Forks
5
PR merge metrics
No merged PRs in 30d

Description

Nice package. Trying to run the examples/legacy.html on IE11 (Windows 7) presented me with an error.

When you [create the anchor link in order to get the origin value](https://github.com/lukeed/dimport/blob/master/src/legacy.js#L13-L14), it is returning `undefined` on my system. This results in `/app.js`, being converted to `undefined//app.js`.

I have seen [some talk](https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/12236493/) that this may be a bug on Edge and Windows 10, although they were referring to `window.location.origin`, however I am running the very latest IE11 with latest security patches on my version of Windows 7, and I am getting an `undefined` value for origin.

Internet Explorer
Version: 11.0.9600.17843
Update Versions: 11.0.20 (KB3058515)

Windows 7 Home Premium
Service Pack 1

Contributor guide

No contributing guide indexed for this repository

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 src/legacy.js lines 13-14 and reproduce the failure through examples/legacy.html in IE11. Trace how the anchor link produces the origin value; done when the example no longer creates an undefined//app.js path and resolves /app.js correctly.

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.