Skip to content

TypeError: next is not a function at Object.viteServeStaticMiddleware when inserting iframe #6717

@linustws

Description

@linustws

As the title says, when i try to insert an iframe with the src attribute being the absolute filepath, i get the error in a black box:
image

The iframe i'm trying to insert is a .html file that has a plotly graph. I'm trying to do this with SvelteKit.

<div class="output_html rendered_html output_subarea ">
     <iframe scrolling="no" width="100%" height="545px" src="src/lib/model/model_iframe_figures/figure_4.html" frameborder="0" allowfullscreen=""></iframe>
</div>

I'm pretty sure that it can find the iframe files and it seems that the next() function cant be found. I've searched online and havent found similar issues that has to do with inserting iframes.

I tried inserting this script tag: <script src="https://cdnjs.cloudflare.com/ajax/libs/core-js/3.32.1/minified.js" integrity="sha512-ZvqqKs1oYkDfMwsIQTpW2OnKhSsTjMvIch9JbsNti/odAAe3B88WyZc8XIVDK9wNN/+sI58v7HUVHhnKaZ2yHg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>

in the html file but it didn't work also...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions