Jump to content
RAGE Multiplayer Community

Directory import index.mjs' is not supported resolving ES modules imported from loader.mjs


Recommended Posts

Does anybody know how to fix this error? 

[INFO] Loading NodeJS packages...
[ERROR] "node_modules" package loading failed, exception stack:
Error [ERR_UNSUPPORTED_DIR_IMPORT]: Directory import 'C:\RAGEMP\server-files\packages\node_modules\index.mjs' is not supported resolving ES modules imported from C:\RAGEMP\server-files\bin\loader.mjs
    at finalizeResolution (internal/modules/esm/resolve.js:267:17)
    at moduleResolve (internal/modules/esm/resolve.js:668:10)
    at Loader.defaultResolve [as _resolve] (internal/modules/esm/resolve.js:779:11)
    at Loader.resolve (internal/modules/esm/loader.js:85:40)
    at Loader.getModuleJob (internal/modules/esm/loader.js:229:28)
    at Loader.import (internal/modules/esm/loader.js:164:28)
    at importModuleDynamically (internal/modules/esm/translators.js:86:35)
    at exports.importModuleDynamicallyCallback (internal/process/esm_loader.js:30:14)
    at loadPackages (file:///C:/RAGEMP/server-files/bin/loader.mjs:2:247)
    at file:///C:/RAGEMP/server-files/bin/loader.mjs:4:7

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...