Skip to content

define: undefined variable #196

@Ethirajulu

Description

@Ethirajulu

Team, we are getting the "define: undefined variable" error when running the following code.

(function (global, factory) { if (typeof define === "function" && define.amd) { define(["module", "exports"], factory); } else if (typeof exports !== "undefined") { factory(module, exports); } else { var mod = { exports: {} }; factory(mod, mod.exports); global.scion = global.scion || {}; global.scion.core = mod.exports; } })

This is a function from a node package that we are trying to integrate into Moddable. It works fine in Node environment.

Could you please suggest us a solution.

Is there is a way to convert the npm packages into XS engine understandable format?

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