Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't run new version #21

Open
BRadHoc opened this issue Jun 30, 2023 · 4 comments
Open

Can't run new version #21

BRadHoc opened this issue Jun 30, 2023 · 4 comments

Comments

@BRadHoc
Copy link

BRadHoc commented Jun 30, 2023

Hi, im updating from an old version of friend-connect and usually launch this project with the following batch script:

:start
@cmd /C "node --es-module-specifier-resolution=node %~dp0\index.js"
timeout /t 5
goto :start

However now im getting the following error:

C:\Users\minecraft\Desktop\bdsx-master\plugins\FriendConnect-main\src>goto :start
(node:13732) ExperimentalWarning: The Node.js specifier resolution flag is experimental. It could change or be removed at any time.
(Use `node --trace-warnings ...` to show where the warning was created)
node:internal/errors:491
    ErrorCaptureStackTrace(err);
    ^

Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/C:/Users/minecraft/Desktop/bdsx-master/plugins/FriendConnect-main/src/index.js' imported from C:\Users\minecraft\Desktop\bdsx-master\plugins\FriendConnect-main\src\
    at new NodeError (node:internal/errors:400:5)
    at finalizeResolution (node:internal/modules/esm/resolve:308:15)
    at moduleResolve (node:internal/modules/esm/resolve:945:10)
    at defaultResolve (node:internal/modules/esm/resolve:1153:11)
    at nextResolve (node:internal/modules/esm/loader:163:28)
    at ESMLoader.resolve (node:internal/modules/esm/loader:842:30)
    at ESMLoader.getModuleJob (node:internal/modules/esm/loader:424:18)
    at ESMLoader.import (node:internal/modules/esm/loader:525:22)
    at node:internal/modules/run_main:58:28
    at loadESM (node:internal/process/esm_loader:91:11) {
  code: 'ERR_MODULE_NOT_FOUND'
}

Node.js v18.13.0

Any idea why it's not working?

@Lorenzo228295
Copy link

i think friend-connect is dead. i also 100% cant use it because i need use node.js v20 because v18 wont let me install packets using npm thing

@jrcarl624
Copy link
Collaborator

i think friend-connect is dead. i also 100% cant use it because i need use node.js v20 because v18 wont let me install packets using npm thing

It's not dead, college has taken all of my time as of late.

@densellp
Copy link
Contributor

i think friend-connect is dead. i also 100% cant use it because i need use node.js v20 because v18 wont let me install packets using npm thing

Please try using NVM (node version manager) until tool is updated to node v20. It still works on node v18.

@densellp
Copy link
Contributor

Hi, im updating from an old version of friend-connect and usually launch this project with the following batch script:

:start
@cmd /C "node --es-module-specifier-resolution=node %~dp0\index.js"
timeout /t 5
goto :start

However now im getting the following error:

C:\Users\minecraft\Desktop\bdsx-master\plugins\FriendConnect-main\src>goto :start
(node:13732) ExperimentalWarning: The Node.js specifier resolution flag is experimental. It could change or be removed at any time.
(Use `node --trace-warnings ...` to show where the warning was created)
node:internal/errors:491
    ErrorCaptureStackTrace(err);
    ^

Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/C:/Users/minecraft/Desktop/bdsx-master/plugins/FriendConnect-main/src/index.js' imported from C:\Users\minecraft\Desktop\bdsx-master\plugins\FriendConnect-main\src\
    at new NodeError (node:internal/errors:400:5)
    at finalizeResolution (node:internal/modules/esm/resolve:308:15)
    at moduleResolve (node:internal/modules/esm/resolve:945:10)
    at defaultResolve (node:internal/modules/esm/resolve:1153:11)
    at nextResolve (node:internal/modules/esm/loader:163:28)
    at ESMLoader.resolve (node:internal/modules/esm/loader:842:30)
    at ESMLoader.getModuleJob (node:internal/modules/esm/loader:424:18)
    at ESMLoader.import (node:internal/modules/esm/loader:525:22)
    at node:internal/modules/run_main:58:28
    at loadESM (node:internal/process/esm_loader:91:11) {
  code: 'ERR_MODULE_NOT_FOUND'
}

Node.js v18.13.0

Any idea why it's not working?

If you can easily transfer over you existing .env file and index.js file. I would just use newer version as standalone. Works fine for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants