garycourt / uri-js

An RFC 3986 compliant, scheme extendable URI parsing/validating/normalizing/resolving library for JavaScript
Other
305 stars 69 forks source link

Error loading urn.js on IE 11 #29

Closed dobladov closed 6 years ago

dobladov commented 6 years ago

Error SCRIPT1014: Invalid character on Internet Explorer 11 with file /uri-js/dist/esnext/schemes/urn.js

screenshot from 2018-05-03 14-00-43

Using Webpack "^4.6.0"

.babelrc

{
  "presets" : [
    ["env", {
      "targets": {
        "browsers": ["last 2 versions", "ie >= 11"]
      }
    }],
  ]
}
garycourt commented 6 years ago

Please use the ES5 version of uri-js at /uri-js/dist/es5/uri.all.js with IE11.

If this is occurring while using Webpack, then upgrade to version uri-js@^4.2.2.