-
Notifications
You must be signed in to change notification settings - Fork 926
HELP, React.Exceptions.BabelException: Unable to get value of the property 'split': Object is null or undefined #220
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
i found that the inner exception occured when JavaScriptEngineSwitcher.Core.JsEngineBase.ExecuteResource processing the resource React.Resources.babel.generated.min.js, and throwed by MsieJavaScriptEngine.ActiveScript. ParseScriptText when calling this._activeScriptParse32.ParseScriptText. whatever, no solution yet... |
I'm also receiving this error, but it only happens on the server after I publish. When I run the project locally, I have no issues. |
Sorry I haven't had time to look into this yet, and I'm about to go on a vacation from today until 13th February. Could you please try ReactJS.NET 2.1 and see if that works? |
(2.1 is the previous version) |
I had the same error.. but when I downgraded to 2.1.2 the problem disappears... |
It's probably due to the upgrade to Babel 6. I'm about to go on vacation Sent from my phone.
|
I have the same issue, any update ?? |
@Daniel15 : Hope you had a great vacation. Same here. Downgrading to 2.1.2 does not help either. React.Exceptions.BabelException: Expected identifier ---> JavaScriptEngineSwitcher.Core.JsRuntimeException: Expected identifier ---> MsieJavaScriptEngine.JsRuntimeException: Expected identifier Interestingly, there are 5 developers on the project, and this works fine on 3 dev machines. It fails on 2 and also on TeamCity. What makes this machine dependent? |
By default ReactJS.NET will try to use V8, and fall back to the MSIE JS engine if V8 does not initialise correctly for some reason. There's a few machine-dependent bits:
You can disable the MSIE fallback by doing |
I was only able to replicate issues when using the "classic" MSIE engine. This engine is quite old now, so I've totally disabled it in ReactJS.NET and now only allow the newer Chakra engine. @vincentshow - Since you mentioned that you were trying |
Just pushed ReactJS.NET 2.2.1 which disables the classic MSIE engine as per my comment above. Please reopen this if you still see the same error message. |
note that you mentioned and i have upgraded my reactjs.net by nuget and added .SetAllowMsieEngine(false) in my config when exception occured, |
I had this problem where it worked locally but not on our production server and where adding .SetAllowMsieEngine(false) to my config I got an error about the V8 bin files not being found. Installing Visual C++ Redistributable Packages for Visual Studio 2013 fixed the issue. See the following SO for more information and different fixes:- |
I have this issue on v2.2.1 |
I also had this issue in v2.2.1 after publishing to Azure server. I disabled MSIE engine fallback with
Seems as though v2.2.1 didn't work out of the box for me - I had to copy ClearScript V8 engine binaries to the right directories (useful: http://www.samulihaverinen.com/web-development/dotnet/2016/01/19/how-to-run-clearscript-v8-javascript-engine-in-azure/). This is all entirely new to me, so I suspect I've missed something with my environment setup somewhere? |
My current development machine is stuck using IE10 so I did what @waacton suggested above by copying the files manually to my user dnx directory and it worked. Thanks. |
I was on 2.3.0 and still had this problem when I published. It worked fine when running locally. I moved back to 2.1.2 and it's working well again. |
exception occured when i trying to compile React.Sample.Mvc4 which is downloaded from github.
my ide is vs2012 and install reactjs.net for mvc4(latest version 2.2) by nuget. any suggestion?
The text was updated successfully, but these errors were encountered: