Error with react-native-video and ReNative when using the Video component - react-native

I am working with a library called ReNative to deploy a React Native application to multiple platforms.
I am doing the tests on a Tizen and Android Tv emulators.
Creating an app with the basic blank template works with no problems.
But after installing the react-native-video plugin (using rnv plugin add) and using the Video component I get the following error when lauching the application with rnv run -p tizen (or androidtv):
ERROR in ./node_modules/react-native-video/Video.js
Module not found: Error: Can't resolve 'react-native/Libraries/Image/resolveAssetSource' in 'C:\dev\ReactNativeVideoReNative\node_modules\react-native-video'
# ./node_modules/react-native-video/Video.js 4:47-105
# ./src/app.js
# ./index.tizen.js
# multi (webpack)-dev-server/client?http://0.0.0.0:8087 (webpack)/hot/dev-server.js ./index.tizen.js
ERROR in ./src/assets/BigBuckBunny.mp4 1:0
Module parse failed: Unexpected character ' ' (1:0)
You may need an appropriate loader to handle this file type.
(Source code omitted for this binary file)
# ./src/app.js 7:41-77
# ./index.tizen.js
# multi (webpack)-dev-server/client?http://0.0.0.0:8087 (webpack)/hot/dev-server.js ./index.tizen.js
Or if you want to see a screenshot:
https://prnt.sc/rg3c1f
Here is an screenshot of the code: https://prnt.sc/rg3gm9
I literally have zero experience with this tool. So, if there is any information that is missing or that you need, tell me.

Related

How to fix Module parse failed: Unexpected token (7463:26) with VueJs and Nuxt Js

I got this Error when i try to use PDFKit with vuejs and nuxtjs how can I fix it
ERROR in ./node_modules/fontkit/dist/module.mjs friendly-errors 15:00:37
Module parse failed: Unexpected token (7463:26) friendly-errors 15:00:37
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| };
| class $5340de7a86f3ae85$export$2e2bcd8739ae039 {
> static zeroMarkWidths = 'AFTER_GPOS';
| static plan(plan, glyphs, features) {
| // Plan the features we want to apply
friendly-errors 15:00:37
# ./node_modules/pdfkit/js/pdfkit.es5.js 5:0-30 3897:15-22 3899:15-22 3901:15-22
# ./node_modules/babel-loader/lib??ref--3-0!./node_modules/vue-loader/lib??vue-loader-options!./pages/index.vue?vue&type=script&lang=js&
# ./pages/index.vue?vue&type=script&lang=js&
# ./pages/index.vue
# ./.nuxt/router.js
# ./.nuxt/index.js
# ./.nuxt/client.js
# multi ./node_modules/eventsource-polyfill/dist/browserify-eventsource.js (webpack)-hot-middleware/client.js?reload=true&timeout=30000&ansiColors=&overlayStyles=&path=%2F__webpack_hmr%2Fclient&name=client ./.nuxt/client.js
friendly-errors 15:00:37
i Nuxt Bridge has now been released in beta. It has full composition API support and it's strongly recommended to migrate from #nuxtjs/composition-api, if possible, by following the steps at https://v3.nuxtjs.org/getting-started/bridge. Feedback welcome at https://github.com/nuxt-community/composition-api/discussions/585.
first it's error with can't find fs and I fix it but at least this one error i can't solve
I try to find any solve but I can't please help

React Native eror "Could not reserve enough space for 2097152KB object heap"

I am working with React Native and trying to create a debug build, or trying to load the build in emulator using "react-native run-anroid" command. I am getting the following error:
Error occurred during initialization of VM Could not reserve enough
space for 2097152KB object heap Java HotSpot(TM) Client VM warning:
ignoring option MaxPermSize=512m; support was removed in 8.0
See the screenshot below:
How can I resolve this error?
Comment below line in gradle.properties inside android folder using #
org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
To
# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
Hi If any one facing same issue while working on react native please follow bellow steps.
Variables->New:
Variable name: _JAVA_OPTIONS
Variable value: -Xmx512M
Variable name: Path
Variable value: ;C:\Program Files\Java\jre6\bin;F:\JDK\bin;
you can also check link
The error indicates that your memory settings for the respective gradle project aren't sufficient.
You can find your current gradle settings in the following file:
/android/ > gradle.properties
org.gradle.jvmargs=-Xmx2048m -XX:MaxMetaspaceSize=512m
will be the value setted up for a regular react-native application.
the error indicated that the given JVM args value isn't sufficient for building the app, for fixing it you can either choose to comment the given line i.e change it to:
# org.gradle.jvmargs=-Xmx2048m -XX:MaxMetaspaceSize=512m
or you can change the JVM args value to default 512m as following:
org.gradle.jvmargs=-Xmx512m -XX:MaxMetaspaceSize=512m
The IOS part of the app runs the same before or after this change so there's no need to change anything in the ios part of the app.

gojs and Aurelia mismatch error

I created a new aurelia project and installed gojs via npm. I added gojs to the aurelia.json dependencies and, without adding any gojs code, just tried to build the project. The build worked fine and gojs went to the vendor-bundle.js The issue is, when I run the project, I get an error from gojs. When I remove the gojs dependency in aurelia.json, the project runs just fine but adding it back always throws the same error located below. Please help.
Uncaught Error: Mismatched anonymous define() module: [object Object]
http://requirejs.org/docs/errors.html#mismatch
at makeError (vendor-bundle.js:11531)
at intakeDefines (vendor-bundle.js:12617)
at vendor-bundle.js:12815
makeError # vendor-bundle.js:11531
intakeDefines # vendor-bundle.js:12617
(anonymous) # vendor-bundle.js:12815
setTimeout (async)
req.nextTick # vendor-bundle.js:13178
localRequire # vendor-bundle.js:12812
requirejs # vendor-bundle.js:13160
(anonymous) # vendor-bundle.js:13199
(anonymous) # vendor-bundle.js:13508
To clear up some confusion here, you're talking about declaring the dependency in aurelia.json which implies you're using aurelia-cli in conjunction with the requirejs loader.
jmdavid's answer mentions webpack which is a different beast altogether. You don't declare dependencies in aurelia.json there; webpack resolves those by itself via the imports it finds in your entry file. I would actually recommend switching to webpack for various reasons; the fact that it would fix the error is just one of them.
The error is likely caused by the go.js module being loaded twice. The error throws on the second load; it should still work regardless of the error. You can't make the error go away in any straightforward manner with requirejs, this is due to how the go.js release is packed.
The only error-free way to load go.js here would be to do so before requirejs is loaded. In aurelia.json:
"node_modules/gojs/release/go.js",
"node_modules/requirejs/require.js"
And no need to import it then either, it will just be available globally.
Probably the versions are oudated on fedoranimus github (https://github.com/fedoranimus/aurelia-gojs).
I made it work by creating a new project with the cli (au new) with webpack and typescript, then npm installed gojs (version "^1.8.15"), then copied relevant code from fedoranimus.

Worklight core-web-layer.js errors

Can someone help me?
When I run my Worklight project on Chrome, Firefox or Opera I don't get any errors.
But when I run it on IE I get these errors:
Error: multipleDefine
Error: multipleDefine
Error: multipleDefine
Error: multipleDefine
SCRIPT5002: Function expected
core-web-layer.js, line 311 character 160
SCRIPT438: Object doesn't support property or method '_eventHandler'
core-web-layer.js, line 165 character 71
When I run it on Android, the Dojo functionality also doesn't work and I get this error:
07-09 13:12:37.817: D/CordovaLog(7180): Error: scriptError
07-09 13:12:37.817: E/Web Console(7180): Error: scriptError at file:///data/data/com.Klappr/files/www/default/dojo/dojo.js:21
Is your core-web-layer.js the one that was created during project creation?
For your issue with running on Android, if you're using Worklight 6.0 with a new project, copy the following files from the Dojo Library project that was created alongside the Worklight project:
toolkit/dojo/dojo/nls/core-web-layer_ROOT.js
toolkit/dojo/dojo/nls/mobile-ui-layer_ROOT.js
These files then must be added to your Worklight project's www/dojo/nls/ directory.
In addition to including the *_ROOT.js files, you may also need to remove the development configuration from the application. To do this, open the Console view (Window > Show View > Other... > Console). From the Console view, click the Open Console button and choose Dojo Library Requests from the list. From the Dojo Library Requests console, click the View Menu (the triangle in the toolbar), and uncheck Provide Library Resources. After this, build and deploy your application to your emulator or device.

qtwebkit-opensource-5.0.0-beta2 build error(target:linux-g++-64,params:--qt --only-webkit --no-webkit2)

when i trying to build it i get this error:
Encountered 3 configuration warning(s):
! QtQuick module not found, QML APIs will not be built
! Missing QtWidgets module, disabling WebKit1
! Missing QtTest module, disabling DumpRenderTree, WebKitTestRunner and tests
WebKit is now configured for building. Just run 'make'.
...
Project ERROR: Unknown module(s) in QT: core
whereas i installed qtbase-5.0.0-beta2 and libQtCore libQtWidgets libQtTest are exist
in usr/lib but libQtQuick not exist.
the 258. line of qtwebkit-opensource-src-5.0.0-beta2/Source/WTF/WTF.pro file cause error
above.the line seems such:
QT += core