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.

IE11: TypeError: Unable to get property 'oldUrl' of undefined or null reference

See original GitHub issue

Do you want to request a feature, report a bug or ask a question? Report a bug

What is the current behavior? This error is thrown:

TypeError: Unable to get property 'oldUrl' of undefined or null reference
  at oldUrl(~/svg-sprite-loader/runtime/browser-sprite.build.js:647:0)

What is the expected behavior? The error should not be thrown.

If the current behavior is a bug, please provide the steps to reproduce, at least part of webpack config with loader configuration and piece of your code. From Webpack config:

{
  test: /\.svg$/,
  exclude: [
    path.resolve(__dirname, './public/img/load-from-url')
  ],
  loaders: [
    'svg-sprite-loader?' + JSON.stringify({
      symbolId: '[name]_[hash]'
    }),
    'svgo-loader?' + JSON.stringify({
      plugins: [
        {removeTitle: true},
        {convertColors: {shorthex: false}},
        {convertPathData: false}
      ]
    })
  ]
}

Please tell us about your environment:

  • Node.js version: 7.9.0
  • webpack version: 1.15.0
  • svg-sprite-loader version: 3.0.1
  • OS type & version: Windows 10

Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc) It seems like event.detail doesn’t exist: screen shot 2017-06-27 at 4 58 42 pm

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:2
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
kisenkacommented, Oct 12, 2017

@negomi looks like custom event initialization method in svg-baker works in IE11 (stackoverflow, MDN).

1reaction
negomicommented, Oct 9, 2017

Unfortunately this is still not fixed.

I traced the line back to svg-baker-runtime: https://github.com/kisenka/svg-baker/blob/53f8796d0382a921e718591d48dbe1896d7599d4/packages/svg-baker-runtime/src/browser-sprite.js#L117

It uses event.detail, which doesn’t seem to exist in IE11 😕

Read more comments on GitHub >

github_iconTop Results From Across the Web

IE11: TypeError: Unable to get property 'oldUrl' of ... - GitHub
This error is thrown: TypeError: Unable to get property 'oldUrl' of undefined or null reference at oldUrl(~/svg-sprite-loader/ru...
Read more >
Angular 2+: IE 11 Unable to get property 'call' of undefined or ...
This error only happens when running ng serve , and will not occur in a production build, so the issue is non-critical, and...
Read more >
Unable to get property status of undefined or null reference ...
Hi, Since 7.23 we have a error that pops up in multiple applications in IE11: “Unable to get property 'status' of undefined or...
Read more >
Internet Explorer 11 Unable to get property 'Display' of
Why am I seeing a message pop up saying: "Unable to get property 'Display' of undefined or null reference"? Can anybody help me?...
Read more >
PH16989: WEBPAGE ERROR: UNABLE TO GET PROPERTY ...
... FF ESR, Chrome) you may get On IE11 : Webpage Error Error: Unable to get property 'selectNodes' of undefined or null reference...
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