Skip to content

html2pptxgenjs.min.js Uncaught ReferenceError: require is not defined while using in asp.net core with JQuery #1

@gyanaranjanpanda

Description

@gyanaranjanpanda

Hi Team,
I am trying to use html2pptxgenjs in my ASP.NET CORE 2.2 application for pptxgenjs.
As soon as I add <script src="~/js/html2pptxgenjs.min.js"></script> to my _Layout.cshtml file I get the following error on my console.

html2pptxgenjs.min.js:1 Uncaught ReferenceError: require is not defined
at html2pptxgenjs.min.js:1
at html2pptxgenjs.min.js:1
(anonymous) @ html2pptxgenjs.min.js:1
(anonymous) @ html2pptxgenjs.min.js:1

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