Skip to content

Async node MF (runtime loading), unable to use createInstance, still works with depreciated init (v0.15.0 -> v0.17.1) #3951

@elliotBraem

Description

@elliotBraem

Describe the bug

I'm noticing issues using createInstance instead of init in the latest version 0.17.1.

In the reproduction I've provided, the main branch uses 0.17.1 with init and is properly registering and loading remotes, while branch v/mf-createInstance using the latest version and createInstance fails on loadRemote with error:

undefined is not an object (evaluating 'execOptions.factory.call')

To recreate, check out the reproduction and follow the readme. The only change is in mf.service.ts

I've moved a simple-transform plugin into the reproduction for easy testing, but this same error occurs with my published modules.

Reproduction

https://github.com/PotLock/usersdotfun/tree/v/mf-createInstance

Used Package Manager

npm

System Info

System:
    OS: macOS 15.5
    CPU: (8) x64 Intel(R) Core(TM) i7-8557U CPU @ 1.70GHz
    Memory: 1.78 GB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 22.11.0 - ~/.nvm/versions/node/v22.11.0/bin/node
    Yarn: 4.9.2 - ~/.nvm/versions/node/v22.11.0/bin/yarn
    npm: 10.9.0 - ~/.nvm/versions/node/v22.11.0/bin/npm
    bun: 1.2.14 - ~/.bun/bin/bun
    Watchman: 2025.03.10.00 - /usr/local/bin/watchman
  Browsers:
    Brave Browser: 138.1.80.115
    Chrome: 137.0.7151.122
    Safari: 18.5

Validations

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