Skip to content

Broken insert option #264

Closed
Closed
@medfreeman

Description

@medfreeman

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): d41bafa#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: 6cd6510#diff-20c6b42869bc2385bcef4e1d9a7afa04R118-R124

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions