Skip to content

Exports fails #2

@antonstjernquist

Description

@antonstjernquist

Export for core objects fails.

[ script:x]     at new Framework2 (@template_app/dist/server.js:28237:51)
[ script:x]     at @template_app/dist/server.js:32376:17
[    c-scripting-core] Failed to load script dist/server.js.

Here:
this.framework = exports["qb-core"]["GetCoreObject"]();

I think you need to save exports in some variable first, something like:

const exps = global.exports;
this.framework = exps["qb-core"]["GetCoreObject"]();

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions