-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Description
Description
Hello. I've created a project, which makes use of Microsoft.CodeAnalysis, and I compile it to WASM using
<RuntimeIdentifier>browser-wasm</RuntimeIdentifier>
However, when I start RoslynWebAssembly/bin/Release/net9.0/browser-wasm/AppBundle/main.js in a browser environment, I get the following error:
Uncaught ManagedError: Argument_EmptyString Arg_ParamName_Name, path at sn (marshal-to-js.ts:420:18) at gn (managed-exports.ts:316:15) at Object.<anonymous> (invoke-cs.ts:321:17) at main.js:12:50
Any help?
Reproduction Steps
Here's a reproduction of the non-working project: https://github.com/VYDocuWare/RoslynWebAssembly
Expected behavior
The wasm-compiled method returns "IsSpeculativeSemanticModel", which is my test of whether the SemanticModel has been generated.
Actual behavior
I get the following error:
Uncaught ManagedError: Argument_EmptyString Arg_ParamName_Name, path at sn (marshal-to-js.ts:420:18) at gn (managed-exports.ts:316:15) at Object.<anonymous> (invoke-cs.ts:321:17) at main.js:12:50
Regression?
No response
Known Workarounds
No response
Configuration
No response
Other information
No response