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 `insert` option

See original GitHub issue

While using the insert option, i get the following error when the application tries to insert a chunk in the browser:

Uncaught (in promise) ReferenceError: insert is not defined
    at bootstrap:891
    at new Promise (<anonymous>)
    at Function.requireEnsure [as e] (bootstrap:861)
    at Function.fn.e (bootstrap:155)
    at load (UpgradeLicense.tsx:7)
    at Object.config.then (universalImport.js:8)

In fact, the user provided insert function is not injected into the bundle code.

Culprit is this line (from #226): https://github.com/faceyspacey/extract-css-chunks-webpack-plugin/commit/d41bafa3b442c0f36a8aa26fddfa5f158043a4e5#diff-1fdf421c05c1140f6d71444ea2b27638L385

The code responsible for injecting it has been forgotten in this PR.

In addition to this, this part of the feature isn’t covered by #202 tests, but i imagine it’s not really possible to test it in a more realistic fashion.

Culprit here: https://github.com/faceyspacey/extract-css-chunks-webpack-plugin/commit/6cd6510f7a86345df8656638aff46b8949da4402#diff-20c6b42869bc2385bcef4e1d9a7afa04R118-R124

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
adi518commented, Sep 22, 2020

Great, I hope it gets published soon, because it takes like a minute to be done with it.

0reactions
ScriptedAlchemycommented, Nov 1, 2020

🎉 This issue has been resolved in version 4.8.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to remove Broken links from Insert Option
Hi All,. How to remove Broken links from Insert Option. I am sharing the screen. Manually we can do but i want to...
Read more >
How To Insert Broken Line In Word (MS Word) - YouTube
Watch in this video How To Insert Broken Line In Word (MS Word) document Use shapes option in Microsoft word to draw the...
Read more >
Insert or delete a page break - Microsoft Support
In the Paragraph dialog box, select Line and Page Breaks. Under Pagination, choose the option that works best for you: Widow/Orphan control. Keep...
Read more >
Editor markup insert is totally broken - Atlassian Community
Hello, the markup insert is totally dead today, I'm okay with the broken preview but the insert function should unless be working.
Read more >
Lessons Learned from Putting Together a Broken Token Insert
Lessons Learned from Putting Together a Broken Token Insert · Less is more with stain · Be careful punching out, don't splinter wood...
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