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

get_CommonJSManager does not have an implementation #1336

Open
AfshinZavvar opened this issue May 19, 2023 · 1 comment
Open

get_CommonJSManager does not have an implementation #1336

AfshinZavvar opened this issue May 19, 2023 · 1 comment

Comments

@AfshinZavvar
Copy link

Packages

React.Web.Mvc4 along with Core and web
JavaScriptEngineSwitcher.V8
JavaScriptEngineSwitcher.V8.Native.win-x64
JavaScriptEngineSwitcher.Core
Microsoft.ClearScript.V8
Microsoft.ClearScript.V8.Native.win-x64

Runtime environment:

  • OS: Windows 11 x64
  • .NET Framework 4.8

(Describe your issue here)

[TypeLoadException: Method 'get_CommonJSManager' in type 'Microsoft.ClearScript.V8.V8ScriptEngine' from assembly 'ClearScript.V8, Version=7.2.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' does not have an implementation.]
JavaScriptEngineSwitcher.V8.V8JsEngine..ctor(V8Settings settings) +0
JavaScriptEngineSwitcher.V8.V8JsEngineFactory.CreateEngine() +39
JSPool.JsPool2.CreateEngine() +130 JSPool.JsPool2.PopulateEngines() +23
JSPool.JsPool2..ctor(JsPoolConfig1 config) +265
React.JavaScriptEngineFactory.CreatePool() +657
React.JavaScriptEngineFactory..ctor(IJsEngineSwitcher jsEngineSwitcher, IReactSiteConfiguration config, ICache cache, IFileSystem fileSystem) +178
lambda_method(Closure , Object[] ) +208
React.TinyIoC.TinyIoCContainer.ConstructType(Type requestedType, Type implementationType, ConstructorInfo constructor, NamedParameterOverloads parameters, ResolveOptions options) +608

@Taritsyn
Copy link
Contributor

Hello, Afshin!

JavaScriptEngineSwitcher.V8.Native.win-x64

You can uninstall the JavaScriptEngineSwitcher.V8.Native.win-x64 package because it is no longer needed now (it is enough just to install the Microsoft.ClearScript.V8.Native.win-x64 package).

… in type 'Microsoft.ClearScript.V8.V8ScriptEngine' from assembly 'ClearScript.V8, Version=7.2.5.0, …

Microsoft ClearScript version 7.2.5 is already quite an old version (it is already more than a year old). I recommend that you upgrade the packages to the following versions:

  • JavaScriptEngineSwitcher.Core 3.21.0
  • JavaScriptEngineSwitcher.V8 3.21.1
  • Microsoft.ClearScript.V8 7.4.1
  • Microsoft.ClearScript.V8.Native.win-x64 7.4.1

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

2 participants