IOS Safari 10: TypeError: Module name constructs an invalid URL
- Dominant language
- JavaScript
- Stars
- 546
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Description
Getting this error when using dimport via script tags in Safari 10 on ipad:
```
TypeError: Module name constructs an invalid URL.
```
HTML script tags:
```
```
Debugger is hitting at this line in the transpiled code:
```
return new Function("return import('" + o + "')").call();
```
I've included the dimport scripts as part of my Svelte build and they bootstrap the app itself. Any help would be appreciated!
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the report in Safari 10 on an iPad using the two HTML script tags and the Svelte-built dimport bootstrap. Start at the transpiled `new Function("return import('" + o + "')").call()` call and trace the module URL it receives. Done means the app bootstraps without the invalid-URL TypeError in this setup.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100