mfexplorer's Recent Forum Activity

  • Even when I include the word export in front of the function it still doesn't work/

    Event sheet 1, event 1, action 1: ReferenceError: loadVerses is not defined is the error I get

    In main I put:

    import { loadVerses } from "./selectedVerses.js";

    In the file selectedVerses.js I have:

    export function loadVerses() {

    globalThis.sVerses = [ ... I am missing something else. I hope to get over these hurdles so i can just tell the thing what I want it to do.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Is there a handy part in the tutorials or manuals to explain this? I have imported functions from files into my project. They define various Javascript functions. I include an import statement in main.js for each of them. There is is a function called loadVerses(); But when I run my tiny project it says:

    Unhandled error: loadVerses is not defined.

    My function in the script file starts off like

    function loadVerses() {

    globalThis.sVerses = [ { At my event sheet I have System->On Start of Layout -> loadVerses() What am I missing>

mfexplorer's avatar

mfexplorer

Member since 20 Oct, 2022

None one is following mfexplorer yet!

Trophy Case

  • 2-Year Club
  • RTFM Read the fabulous manual
  • Email Verified

Progress

4/44
How to earn trophies