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.

Broken build 3.5.8

See original GitHub issue

On build 3.5.8 getting next error, on 3.5.7 all is OK

SVGSpritemapPlugin(node:3562603) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'startsWith' of undefined
    at /home/mihail-opanasenko/www/project/node_modules/svg-spritemap-webpack-plugin/lib/index.js:291:77
    at Array.forEach (<anonymous>)
    at /home/mihail-opanasenko/www/project/node_modules/svg-spritemap-webpack-plugin/lib/index.js:290:32
    at AsyncSeriesHook.eval [as callAsync] (eval at create (/home/mihail-opanasenko/www/project/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:12:1)
    at AsyncSeriesHook.lazyCompileHook (/home/mihail-opanasenko/www/project/node_modules/tapable/lib/Hook.js:154:20)
    at Compiler.emitAssets (/home/mihail-opanasenko/www/project/node_modules/webpack/lib/Compiler.js:367:19)
    at onCompiled (/home/mihail-opanasenko/www/project/node_modules/webpack/lib/Compiler.js:235:9)
    at /home/mihail-opanasenko/www/project/node_modules/webpack/lib/Compiler.js:556:14
    at AsyncSeriesHook.eval [as callAsync] (eval at create (/home/mihail-opanasenko/www/project/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:15:1)
    at AsyncSeriesHook.lazyCompileHook (/home/mihail-opanasenko/www/project/node_modules/tapable/lib/Hook.js:154:20)
    at /home/mihail-opanasenko/www/project/node_modules/webpack/lib/Compiler.js:553:30
    at AsyncSeriesHook.eval [as callAsync] (eval at create (/home/mihail-opanasenko/www/project/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:9:1)
    at AsyncSeriesHook.lazyCompileHook (/home/mihail-opanasenko/www/project/node_modules/tapable/lib/Hook.js:154:20)
    at /home/mihail-opanasenko/www/project/node_modules/webpack/lib/Compilation.js:1323:35
    at eval (eval at create (/home/mihail-opanasenko/www/project/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:17:1)
    at /home/mihail-opanasenko/www/project/node_modules/svg-spritemap-webpack-plugin/lib/index.js:254:32
    at _next0 (eval at create (/home/mihail-opanasenko/www/project/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:13:1)
    at eval (eval at create (/home/mihail-opanasenko/www/project/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:28:1)
    at /home/mihail-opanasenko/www/project/node_modules/svg-spritemap-webpack-plugin/lib/index.js:245:32
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
(node:3562603) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 95)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:15 (8 by maintainers)

github_iconTop GitHub Comments

3reactions
cascornelissencommented, Aug 29, 2020

@ivankristianto, the fix for this issue has been released in version 3.5.9 🚀 I’m expecting this to also solve the original issue, thanks for helping me debug it!

1reaction
ivankristiantocommented, Aug 29, 2020

@cascornelissen I’m very curious about this issue and spent a bit of time to hunt it down. And better, i provide the proof of concept what causing the issue. Here is the repo: https://github.com/ivankristianto/svg-spritemap-webpack-plugin-demo

And if you enable this line: https://github.com/ivankristianto/svg-spritemap-webpack-plugin-demo/blob/master/src/client.js#L5

And do yarn && yarn build, it will throw this error:

95% [0] emitting SVGSpritemapPlugin(node:10529) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'startsWith' of null

my environment:

node: v12.16.2
webpack: v4.44.1
webpack-cli: v3.3.12

And if you try with the version 3.5.7, it can compile successfully.

If there is anything I can help you more, please let me know.

And last but not least, thank you so much for your help and build / maintain this plugin.

Read more comments on GitHub >

github_iconTop Results From Across the Web

D&D 3E/3.5 - Top 20 most broken character builds 3.5
1) Most truely "broken" builds require dubious rules interpretations. Maybe by a lawyer's reading they are RAW, but they are clearly not RAI....
Read more >
Most Broken PC Build in 3.5 : r/DnD - Reddit
Alright friends, DM said anything goes and wants to see broken as hell builds. Stipulations are no infinite combos, no incorporeal.
Read more >
Broken Builds (3.5) - Giant in the Playground Forums
Broken Builds (3.5). I am someone who has been playing D&D for a few years now and have wanted my characters to be...
Read more >
What are some of the most broken D&D 3.5e character builds ...
The Word. Using caster level shenanigans to get a caster level in the 1000s, and then simultaneously casting all the “word” spells (Holy...
Read more >
D&D 3.5 Need Broken Character Suggestions - Ars Technica
The most broken character I've seen is a Half-Ogre Fighter/Hulking Hurler/Warhulk. For this character to work, the DM needs to go by the ......
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