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

ts import fs等node内置模块出现node-resolve.mjs导出ERR_INVALID_URL_SCHEME报错,求助怎么解决 #13

Open
xxylikexq opened this issue Jul 18, 2024 · 0 comments

Comments

@xxylikexq
Copy link

Exception: puer_execute.mjs:194: Error: c# exception:puerts\ts-loader\node-resolve.mjs:78: Error: ERR_INVALID_URL_SCHEME file

Error: ERR_INVALID_URL_SCHEME file
at fileURLToPath (puerts\ts-loader\node-resolve.mjs:78:15)
at packageLoad (puerts\ts-loader\node-resolve.mjs:5361:16)
at global.puer_resolve_module_content (puer_execute.mjs:194:32),stack: at Puerts.GenericDelegate.Func[T1,TResult] (T1 p1) [0x0005a] in .\Library\PackageCache\[email protected]\Runtime\Src\Default\JSType\GenericDelegate.cs:548
at NodeModuleLoader.ReadFile (System.String specifier, System.String& debugpath) [0x00024] in .\Library\PackageCache\[email protected]\Runtime\NodeModuleLoader\NodeModuleLoader.cs:80
at Puerts.TSLoader.TSLoader.ReadFile (System.String specifier, System.String& debugpath) [0x0008b] in .\Library\PackageCache\[email protected]\Runtime\TSLoader.cs:155
at (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Reflection.RuntimeMethodInfo,object,object[],System.Exception&)
at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0006a] in <51fded79cd284d4d911c5949aff4cb21>:0

Error: c# exception:puerts\ts-loader\node-resolve.mjs:78: Error: ERR_INVALID_URL_SCHEME file

Error: ERR_INVALID_URL_SCHEME file
at fileURLToPath (puerts\ts-loader\node-resolve.mjs:78:15)
at packageLoad (puerts\ts-loader\node-resolve.mjs:5361:16)
at global.puer_resolve_module_content (puer_execute.mjs:194:32),stack: at Puerts.GenericDelegate.Func[T1,TResult] (T1 p1) [0x0005a] in .\Library\PackageCache\[email protected]\Runtime\Src\Default\JSType\GenericDelegate.cs:548
at NodeModuleLoader.ReadFile (System.String specifier, System.String& debugpath) [0x00024] in .\Library\PackageCache\[email protected]\Runtime\NodeModuleLoader\NodeModuleLoader.cs:80
at Puerts.TSLoader.TSLoader.ReadFile (System.String specifier, System.String& debugpath) [0x0008b] in .\Library\PackageCache\[email protected]\Runtime\TSLoader.cs:155
at (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Reflection.RuntimeMethodInfo,object,object[],System.Exception&)
at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0006a] in <51fded79cd284d4d911c5949aff4cb21>:0
at global.puer_resolve_module_content (puer_execute.mjs:194:32)
Puerts.GenericDelegate.Func[T1,TResult] (T1 p1) (at ./Library/PackageCache/[email protected]/Runtime/Src/Default/JSType/GenericDelegate.cs:548)
Puerts.JsEnv.ExecuteModule (System.String specifier) (at ./Library/PackageCache/[email protected]/Runtime/Src/Default/JsEnv.cs:315)
GlobalManager.Start () (at Assets/Scripts/u3d_scripts/global/GlobalManager.cs:16)

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

1 participant