IE11: TypeError: Unable to get property 'oldUrl' of undefined or null reference
See original GitHub issueDo 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:
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:11 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@negomi looks like custom event initialization method in svg-baker works in IE11 (stackoverflow, MDN).
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 😕