{"action":"created","issue":{"url":"https://api.github.com/repos/reactjs/React.NET/issues/355","repository_url":"https://api.github.com/repos/reactjs/React.NET","labels_url":"https://api.github.com/repos/reactjs/React.NET/issues/355/labels{/name}","comments_url":"https://api.github.com/repos/reactjs/React.NET/issues/355/comments","events_url":"https://api.github.com/repos/reactjs/React.NET/issues/355/events","html_url":"https://github.com/reactjs/React.NET/issues/355","id":192121039,"number":355,"title":".NET Core + Chakra + Ubuntu can't find jsx file","user":{"login":"malachib","id":1586399,"avatar_url":"https://avatars0.githubusercontent.com/u/1586399?v=4","gravatar_id":"","url":"https://api.github.com/users/malachib","html_url":"https://github.com/malachib","followers_url":"https://api.github.com/users/malachib/followers","following_url":"https://api.github.com/users/malachib/following{/other_user}","gists_url":"https://api.github.com/users/malachib/gists{/gist_id}","starred_url":"https://api.github.com/users/malachib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/malachib/subscriptions","organizations_url":"https://api.github.com/users/malachib/orgs","repos_url":"https://api.github.com/users/malachib/repos","events_url":"https://api.github.com/users/malachib/events{/privacy}","received_events_url":"https://api.github.com/users/malachib/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2016-11-28T21:24:49Z","updated_at":"2017-10-13T19:26:09Z","closed_at":null,"author_association":"NONE","body":"I am trying to learn from the tutorial (https://reactjs.net/getting-started/tutorial.html)  and navigated my way around this issue #338 as it appears to apply to Ubuntu also.  Now, it looks like it's almost working, but it appears the file path resolution is incorrect:\r\n\r\n`System.IO.FileNotFoundException: Could not find file '/home/malachi/Projects/notos.server/src/notos.server/notos.server.web/bin/Debug/netcoreapp1.0/wwwroot/home/malachi/Projects/notos.server/src/notos.server/notos.server.web/bin/Debug/netcoreapp1.0/wwwroot/js/tutorial.jsx'.`\r\n\r\nSee how the path is doubling up? That doesn't seem quite right.  I doublechecked the path from `<script src=\"@Url.Content(\"~/js/tutorial.jsx\")\"></script>` and it spits out `<script src=\"/js/tutorial.jsx\"></script>` , which seems to be expected behavior.\r\n\r\nOn a related note, when I attempt to do anything with Debian, I get a different error:\r\n\r\n```\r\nError initialising JavaScriptEngineSwitcher.ChakraCore.ChakraCoreJsEngineFactory: JavaScriptEngineSwitcher.Core.JsEngineLoadException: During loading of ChakraCoreJsEngine error has occurred.\r\n\t\r\nSee more details:\r\n\r\nUnable to load DLL 'ChakraCore': The specified module could not be found.\r\n (Exception from HRESULT: 0x8007007E) ---> System.DllNotFoundException: Unable to load DLL 'ChakraCore': The specified module could not be found.\r\n (Exception from HRESULT: 0x8007007E)\r\n   at JavaScriptEngineSwitcher.ChakraCore.JsRt.NativeMethods.JsCreateRuntime(JsRuntimeAttributes attributes, JsThreadServiceCallback threadService, JsRuntime& runtime)\r\n   at JavaScriptEngineSwitcher.ChakraCore.ChakraCoreJsEngine..ctor(ChakraCoreSettings settings)\r\n   --- End of inner exception stack trace ---\r\n   at JavaScriptEngineSwitcher.ChakraCore.ChakraCoreJsEngine..ctor(ChakraCoreSettings settings)\r\n   at JavaScriptEngineSwitcher.ChakraCore.ChakraCoreJsEngineFactory.CreateEngine()\r\n   at React.JavaScriptEngineFactory.GetFactory(JsEngineSwitcher jsEngineSwitcher, Boolean allowMsie)\r\nLoaded '/home/malachi/.nuget/packages/VroomJs/1.2.3/lib/netstandard1.6/VroomJs.dll'. Cannot find or open the symbol file.\r\n```\r\n\r\nStartup ConfigureServices code uses:\r\n\r\n```\r\n            services.AddReact();\r\n\r\n            // also for ReactJS.net, explicitly using Chakra lib since default Vroom\r\n            // isn't fully available except on Windows\r\n            services.AddJsEngineSwitcher(options =>\r\n                options.DefaultEngineName = ChakraCoreJsEngine.EngineName).\r\n                    AddChakraCore();\r\n\r\n            // Add framework services.\r\n            services.AddMvc();\r\n```"},"comment":{"url":"https://api.github.com/repos/reactjs/React.NET/issues/comments/336545711","html_url":"https://github.com/reactjs/React.NET/issues/355#issuecomment-336545711","issue_url":"https://api.github.com/repos/reactjs/React.NET/issues/355","id":336545711,"user":{"login":"pablinos","id":96462,"avatar_url":"https://avatars0.githubusercontent.com/u/96462?v=4","gravatar_id":"","url":"https://api.github.com/users/pablinos","html_url":"https://github.com/pablinos","followers_url":"https://api.github.com/users/pablinos/followers","following_url":"https://api.github.com/users/pablinos/following{/other_user}","gists_url":"https://api.github.com/users/pablinos/gists{/gist_id}","starred_url":"https://api.github.com/users/pablinos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pablinos/subscriptions","organizations_url":"https://api.github.com/users/pablinos/orgs","repos_url":"https://api.github.com/users/pablinos/repos","events_url":"https://api.github.com/users/pablinos/events{/privacy}","received_events_url":"https://api.github.com/users/pablinos/received_events","type":"User","site_admin":false},"created_at":"2017-10-13T19:26:09Z","updated_at":"2017-10-13T19:26:09Z","author_association":"NONE","body":"I had this same error running the dotnet docker container. I went to get the source to build a version of ChakraCore as suggested and noticed that there was a linux-x64 binary version. \r\n\r\nhttps://github.com/Microsoft/ChakraCore/releases\r\n\r\nI downloaded that and copied the `libCharkaCore.so` to the `~/.nuget/packages/JavaScriptEngineSwitcher.ChakraCore.Native.debian-x64/2.1.0/runtimes/debian-x64/native/` directory and it fixed it. \r\n\r\nWould it be worth updating the native packages so it's just a linux-x64 one and could track the official binary releases? "}}
{"actor":{"display_login":"pablinos"}}