-
Notifications
You must be signed in to change notification settings - Fork 927
.NET Core + Chakra + Ubuntu can't find jsx file #355
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
Comments
Hello, Malachi!
You have installed the JavaScriptEngineSwitcher.ChakraCore.Native.debian-x64 package? |
Hi @Taritsyn - thanks for the quick response! Yes, I have installed ChakraCore.Native.debian-x64 - to the best of my knowledge. I have Startup.cs configured not only as described above, but also:
Furthermore, my project.json has the following:
Lastly, the aforementioned exception is augmented also by this exception:
|
What version of Ubuntu are you using? Give a example of the |
It's Ubuntu 16.04.01 & uname produces:
frameworks section looks like:
My debian machine uname produces: |
"frameworks": {
"netcoreapp1.0": {
"buildOptions": {
"define": [ "DNXCORE50" ]
}
}
}, I recommend to remove all the JavaScriptEngineSwitcher.V8 packages, because it is not compatible with the
I have built and tested the Try to build the
After all these steps, run your web application. |
Thank you for this insight. Firstly, I'll ensure the .V8 is removed. Secondly, struggling a bit since Debian and its ever-so-antiquated packages are only up to clang 3.5 but ChakraCore wants 3.7. Still futzing with that. Lastly, revisiting the Ubuntu scenario (the title issue) - any clues as to why the FileNotFoundException is occurring? |
Hello, Malachi!
To solve this problem can only @Daniel15, because I am creator of the JavaScript Engine Switcher and have to the React.NET project only indirectly related. It seems to me, that the problem is in implementation of the |
This is why I use Debian Testing (Stretch) in production, it's still stable enough for everyday use :)
I suspect something is wrong with MapPath, like @Taritsyn mentioned. It's working fine for me on Mono (http://dan.cx/socialfeed.htm is running on Mono) but I haven't done extensive testing on .NET Core on Linux. Pull requests are appreciated :) |
OK well I appreciate the attention and feedback - for now I am gonna do some workarounds, Since I'm so new to react, I'm not even sure how extensively I'll be using it. When things settle down and if I'm still in the react world, I'll have a look at AspNetFileSystem |
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. https://github.com/Microsoft/ChakraCore/releases I downloaded that and copied the Would it be worth updating the native packages so it's just a linux-x64 one and could track the official binary releases? |
Hello, Paul!
Which Linux are you using?
May be need to upgrade to version 2.4.6?
I do not quite understand how Microsoft's employees build such an assembly. In official instruction, nothing is written about this. Microsoft's version of the |
Hi, Linux version is Debian Jessie as it's the dotnet Docker image. That is weird that it defaulted to the 2.1 version. Could it be to do with the project being dotnet core/tools 1.1.4? I'm not sure how they'd be a universal library like that either, but being 2.5 times the size, it does suggest there's a lot more in there! Perhaps they explain it if we asked the question there? |
It seems, that Microsoft's employees build a ChakraCore library with the following parameters:
I.e. your problem is very similar to the same problem with OS X. Both problems caused by lack of a suitable version of the ICU library. All this universality is achieved through embedding of the ICU-57 library to the ChakraCore assembly (because of this, assembly size is increased by 2,5 times). |
Ah, unicode and timezones, two things that have given me a lot of headaches over the years! I'll try installing ICU and see if the library version in the Debian package works or not. |
@pablinos In version 3.0.0 Alpha 6 ICU-57 library was embedded into the |
@pablinos I moved the corresponding functionality from 3.X branch to version 2.4.12. |
Brilliant, thanks for that, I'll take a look!
|
Closing issues older than a year, please re-open if you think this is still relevant. |
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:
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'.
See 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.On a related note, when I attempt to do anything with Debian, I get a different error:
Startup ConfigureServices code uses:
The text was updated successfully, but these errors were encountered: