-
July 21st, 2017, 09:23 AM
#1
React-Native release build fails
Hi all,
I hope I'm writing this in right place.
I'm developing Android application with react-native using lightstreamer-client.
I had small issue using lightstreamer while developing.
The error was "/node_modules/lightstreamer-client/lightstreamer.js: 'with' in strict mode"
and solution was to add
|
I'm having issue with building my release apk. Problem is occurred when I installed lightstreamer-client module. On their site they say you should add this line to .babelrc:
"ignore": [ "./node_modules/lightstreamer-client/lightstreamer" ]
|
|
I'm having issue with building my release apk. Problem is occurred when I installed lightstreamer-client module. On their site they say you should add this line to .babelrc:
"ignore": [ "./node_modules/lightstreamer-client/lightstreamer" ]
|
"ignore": [ "./node_modules/lightstreamer-client/lightstreamer" ]
to .babelrc (you wrote it on your github example for react-native).
Now, I tried to compile release version and I get same error as if it skips .babelrc or use some other config file.
Do you have any tip how to solve this?
Thanks in advance.
Cheers,
Stefan
-
July 21st, 2017, 03:45 PM
#2
Hi Stefan,
You can find on npm the strict mode compatible version of the Lightstreamer Node.js Client Library, it’s versioned as 7.0.7.
However, to fully achieve strict mode compatibility, you need also Lightstreamer Server 7.
Please let us know if you need any further clarifications.
Regards,
Giuseppe
-
July 24th, 2017, 09:42 AM
#3
Hi Giuseppe,
thanks for fast replay. This works for me. Build was successful. 
I just want to ask do you have some strict mode compatible version of Lightstreamer client that is compatible with Server version 6.1.0?
Once again, thanks for your answer.
Kind regards,
Stefan
-
July 25th, 2017, 09:14 AM
#4
Hi Stefan,
To clarify, the Node.js Client Library version 7.0.7 is compatible with Server version 6.1.0 (since 6.0.2 actually).
The problem is that Server version 6.1.0 doesn't support javascript strict mode for its own behavior.
I confirm that exist a patch for the Lightstreamer server 6.1.0 that supports javascript strict mode and so allow to use the Node.js Client Library version 7.0.7 successfully in 'strict mode'.
However, there is no a plan for public release of this patch, but can be requested by customers at support@lightstreamer.com.
Regards,
Giuseppe
Similar Threads
-
By kpturner in forum Client SDKs
Replies: 3
Last Post: July 29th, 2014, 12:15 PM
-
Replies: 1
Last Post: November 19th, 2010, 11:41 AM
-
By PeterHiross in forum General
Replies: 2
Last Post: August 25th, 2010, 04:27 PM
-
By Alessandro in forum Client SDKs
Replies: 4
Last Post: March 24th, 2009, 10:16 AM
-
By EriOor in forum Adapter SDKs
Replies: 6
Last Post: May 7th, 2007, 05:19 PM
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 06:16 AM.
Bookmarks