Skip to content

.JSX files are not getting compiled on the fly to .JS #645

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

Closed
LanChandrasekaran opened this issue Dec 26, 2018 · 4 comments
Closed

.JSX files are not getting compiled on the fly to .JS #645

LanChandrasekaran opened this issue Dec 26, 2018 · 4 comments

Comments

@LanChandrasekaran
Copy link

LanChandrasekaran commented Dec 26, 2018

I followed the Tutorial steps as described on reactjs.net. However when I tried running the application on VS2017, I'm getting an empty page.

When I tried requesting (http://localhost:/Scripts/Tutorial.jsx. I'm getting the below error
capture

Note: I added the following assemblies manually to the bin folder

ClearScriptV8-32.dll
ClearScriptV8-64.dll
v8-base-ia32.dll
v8-base-x64.dll
v8-ia32.dll
v8-x64.dll

and now I'm getting the below error
capture_next

Is there something that needs to be configured to make the page render the content ?

@Daniel15 / @dustinsoftware - your help is much appreciated

@Taritsyn
Copy link
Contributor

Hello!

Remove all listed assemblies and install the JavaScriptEngineSwitcher.V8.Native.win-x86 package .

@Taritsyn
Copy link
Contributor

If you use the ReactJS.NET version 3.X, then need to install the JavaScriptEngineSwitcher.V8.Native.win-x86 package version 2.X. I also recommend you to read the “V8” section of “Misconceptions about the JavaScript Engine Switcher version 2.X” discussion.

@LanChandrasekaran
Copy link
Author

Thank you for the help. Looking at the document. Let me get back if I have any questions.

@dustinsoftware
Copy link
Member

dustinsoftware commented Dec 27, 2018

I'll keep this issue open since it's not mentioned at all in the tutorial that you have to install a specific NuGet package for the JS engine you want to use. The only references I could find are here:

https://reactjs.net/getting-started/chakracore.html
https://reactjs.net/getting-started/aspnet.html

Install the React.Web.Mvc4 package through NuGet. You will also need to install a JS engine to use (either V8 or ChakraCore are recommended). See the JSEngineSwitcher docs for more information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants