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

C# and JSv2 do not work in the same module #250

Open
devpanda0 opened this issue Aug 28, 2024 · 1 comment
Open

C# and JSv2 do not work in the same module #250

devpanda0 opened this issue Aug 28, 2024 · 1 comment
Labels
scope: question This issue needs further explanation

Comments

@devpanda0
Copy link

As mentioned in the title, C# and JSv2 do not work in the same module.

The error was found by @shloooo.

Error:

[15:10:54] Loading resource core
[15:10:54] [V8] Starting script client/index.js
[15:10:54][Error] [V8] v8::Module::GetModuleNamespace: v8::Module::GetModuleNamespace must be used on an instantiated module
[15:10:54][Error] [V8] Unhandled promise rejection at core:[unknown] (ReferenceError: No such module: @altv/client)
[15:10:54][Error] [V8] Exception at core:<bootstrapper>:18
[15:10:54][Error]   if(!alt.isWorker) __internal_start_file(mainPath);
[15:10:54][Error] ReferenceError: No such module: @altv/client
[15:10:54][Error] Failed to load resource core

resource.toml:

type = 'csharp'
client-type = "jsv2"
client-main = 'client/index.js'
client-files = [
    'client/*'
]
deps = []
main = "server/Core.dll"
required-permissions = [
    "Screen Capture",
    "WebRTC",
    "Clipboard Access",
    "Extended Voice API"
]
@xLuxy xLuxy assigned xLuxy and unassigned xLuxy Aug 28, 2024
@xLuxy xLuxy added the scope: question This issue needs further explanation label Aug 31, 2024
@xLuxy
Copy link
Contributor

xLuxy commented Aug 31, 2024

This issue might be core related - for more information see the mentioned issue in altv-issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: question This issue needs further explanation
Projects
None yet
Development

No branches or pull requests

2 participants