Im doing a video site and required to have video.js on the site. But i also need a push menu so i used first mmenu. The problem is my video player stops when the js of mmenu is loaded. Same happens when i tried slidebars.js. When i remove them the player works fine.
here are some errors i got but i also see this even the video is working fine.
Video Error
_V_.Event
altKey: undefined
attrChange: undefined
attrName: undefined
bubbles: false
button: undefined
cancelable: false
charCode: undefined
clientX: undefined
clientY: undefined
ctrlKey: undefined
currentTarget: video#example_video_1_html5_api.vjs-tech
data: undefined
detail: undefined
eventPhase: 2
fromElement: undefined
handler: undefined
isDefaultPrevented: function returnFalse(){return false}
isPropagationStopped: function returnTrue(){return true}
keyCode: undefined
metaKey: undefined
newValue: undefined
offsetX: undefined
offsetY: undefined
originalEvent: Event
pageX: undefined
pageY: undefined
prevValue: undefined
relatedNode: undefined
relatedTarget: undefined
result: undefined
screenX: undefined
screenY: undefined
shiftKey: undefined
srcElement: video#example_video_1_html5_api.vjs-tech
target: div#example_video_1.video-js.vjs-default-skin.vjs-paused
timeStamp: 1402109749287
toElement: undefined
type: "error"
vdata1402109746116: true
view: undefined
wheelDelta: undefined
which: undefined
__proto__: Object
Related
The Vue Konva setup runs properly on local dev envs
After building the app as it fails to find v-stage tag and Konva component also
Versions being used
"vue": "^2.6.14",
"vue-konva": "^2.1.7",
"konva": "^8.3.10",
Error message
import VueKonva from 'vue-konva'
import App from 'file'
window.Vue.use(VueKonva)
window.custom.extension.register('#ext-size-comparison-view', {
mounted(element) {
window.FPI.extension.mountApp({
element,
component: App,
})
},
})
Error Message
Uncaught TypeError: Cannot read properties of undefined (reading 'component')
at Module.<anonymous> (vue-konva.js:304:106)
at r (vue-konva.js:34:30)
at Object.<anonymous> (vue-konva.js:111:18)
at r (vue-konva.js:34:30)
at vue-konva.js:98:18
at vue-konva.js:15:17
at vue-konva.js:7:20
at 6168 (vue-konva.js:5:1)
Need help in fixing the below error :
Vue.directive is not a function
I am using Vue Webpack boilerplate https://github.com/vuejs-templates/webpack for my front-end project.
Here is the structure of the project:
I am getting the following error
[HMR] Waiting for update signal from WDS...
webpack-internal:///./src/helpers/directives.js:1 Uncaught TypeError: Vue.directive is not a function
at eval (webpack-internal:///./src/helpers/directives.js:1)
at Object../src/helpers/directives.js (app.js:4759)
at __webpack_require__ (app.js:708)
at fn (app.js:113)
at Object.eval (webpack-internal:///./src/bootstrap.js:44)
at eval (webpack-internal:///./src/bootstrap.js:142)
at Object../src/bootstrap.js (app.js:4568)
at __webpack_require__ (app.js:708)
at fn (app.js:113)
at eval (webpack-internal:///./src/main.js:22)
webpack-internal:///./node_modules/vue/dist/vue.esm.js:9075 Download the Vue Devtools extension for a better development experience:
https://github.com/vuejs/vue-devtools
webpack-internal:///./node_modules/vue/dist/vue.esm.js:9086 You are running Vue in development mode.
Make sure to turn on production mode when deploying for production.
See more tips at https://vuejs.org/guide/deployment.html
helper\directives.js
Vue.directive('click-outside', {
bind: function (el, binding, vnode) {
el.event = function (event) {
// here I check that click was outside the el and his childrens
if (!(el === event.target || el.contains(event.target))) {
// and if it did, call method provided in attribute value
vnode.context[binding.expression](event)
}
}
document.body.addEventListener('click', el.event)
},
unbind: function (el) {
document.body.removeEventListener('click', el.event)
}
})
I am using react-native-touch-id. iOS works fine but got issues with the android.
TouchID.authenticate()
.then()
.catch(error => {
});
The above snippet gives
TypeError: Cannot read property 'authenticate' of undefined
When I dig into the node_modules, in file TouchId.android.js, there is FingerprintAuth undefined in NativeModules.
RN: 0.57.2
I have tried removing the node_modules and re-setup the library, but same problem occurs.
Thanks
I'm creating a cmake project of my Qt5 application. Now when I compile my application using cmake in Clion I got a fatal error.
My CMakeLists.txt file looks like:
cmake_minimum_required(VERSION 2.8.11)
project(Oefening11_kv)
# Find includes in corresponding build directories
set(CMAKE_INCLUDE_CURRENT_DIR ON)
# Instruct CMake to run moc automatically when needed.
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
set (CMAKE_PREFIX_PATH C:\\Qt\\Qt5.8.0\\5.8\\mingw53_32\\lib\\cmake\\)
# Find the Qt libraries
find_package(Qt5Core REQUIRED)
find_package(Qt5Widgets)
find_package(Qt5Gui)
find_package(Qt5Charts)
set(Oefening11_kv_SOURCES main.cpp oefening11a.cpp oefening11b.cpp oefening11c.cpp)
set(Oefening11_kv_HEADERS oefening11a.h oefening11b.h oefening11c.h)
set(Oefening11_kv_FORMS oefening11a.ui)
QT5_WRAP_CPP(Oefening11_kv_HEADERS_MOC ${Oefening11_kv_HEADERS})
QT5_WRAP_UI(Oefening11_kv_FORMS_HEADERS ${Oefening11_kv_FORMS})
add_library(Oefening11_kv_CONFIG ${Oefening11_kv_HEADERS_MOC} ${Oefening11_kv_FORMS_HEADERS})
QT5_USE_MODULES(Oefening11_kv_CONFIG Widgets)
add_executable(Oefening11_kv ${Oefening11_kv_SOURCES} ${Oefening11_kv_CONFIG})
QT5_USE_MODULES(Oefening11_kv Core Gui Widgets Charts)
The error that Clion is trowing when I compile the application is:
oefening11a.cpp:21: undefined reference to
__imp__ZN8QtCharts11QLineSeriesC1EP7QObject' oefening11a.cpp:26:
undefined reference to__imp__ZN8QtCharts9QXYSeries6appendEdd'
oefening11a.cpp:30: undefined reference to
__imp__ZN8QtCharts6QChartC1EP13QGraphicsItem6QFlagsIN2Qt10WindowTypeEE' oefening11a.cpp:31: undefined reference to
__imp__ZN8QtCharts6QChart9addSeriesEPNS_15QAbstractSeriesE'
oefening11a.cpp:32: undefined reference to
__imp__ZNK8QtCharts6QChart6legendEv' oefening11a.cpp:33: undefined
reference to__imp__ZN8QtCharts6QChart8setTitleERK7QString'
oefening11a.cpp:36: undefined reference to
__imp__ZN8QtCharts10QValueAxisC1EP7QObject' oefening11a.cpp:37:
undefined reference to
__imp__ZN8QtCharts10QValueAxis14setLabelFormatERK7QString'
oefening11a.cpp:38: undefined reference to
__imp__ZN8QtCharts13QAbstractAxis12setTitleTextERK7QString'
oefening11a.cpp:39: undefined reference to
__imp__ZN8QtCharts6QChart7addAxisEPNS_13QAbstractAxisE6QFlagsIN2Qt13AlignmentFlagEE'
oefening11a.cpp:40: undefined reference to
__imp__ZN8QtCharts15QAbstractSeries10attachAxisEPNS_13QAbstractAxisE'
oefening11a.cpp:43: undefined reference to
__imp__ZN8QtCharts10QValueAxisC1EP7QObject' oefening11a.cpp:44:
undefined reference to
__imp__ZN8QtCharts10QValueAxis14setLabelFormatERK7QString'
oefening11a.cpp:45: undefined reference to
__imp__ZN8QtCharts13QAbstractAxis12setTitleTextERK7QString'
oefening11a.cpp:46: undefined reference to
__imp__ZN8QtCharts6QChart7addAxisEPNS_13QAbstractAxisE6QFlagsIN2Qt13AlignmentFlagEE'
oefening11a.cpp:47: undefined reference to
__imp__ZN8QtCharts15QAbstractSeries10attachAxisEPNS_13QAbstractAxisE'
oefening11a.cpp:50: undefined reference to
__imp__ZN8QtCharts10QChartViewC1EPNS_6QChartEP7QWidget'
oefening11a.cpp:51: undefined reference to
__imp__ZN13QGraphicsView13setRenderHintEN8QPainter10RenderHintEb'
oefening11a.cpp:54: undefined reference to
__imp__ZN11QMainWindow16setCentralWidgetEP7QWidget'
oefening11a.cpp:73: undefined reference to
__imp__ZN10QStatusBar11showMessageERK7QStringi' t_automoc.cpp:(.rdata$_ZTV11Oefening11A[_ZTV11Oefening11A]+0x38):
undefined reference to QMainWindow::event(QEvent*)'
t_automoc.cpp:(.rdata$_ZTV11Oefening11A[_ZTV11Oefening11A]+0x40):
undefined reference toQObject::eventFilter(QObject*, QEvent*)'
t_automoc.cpp:(.rdata$_ZTV11Oefening11A[_ZTV11Oefening11A]+0x48):
undefined reference to QObject::timerEvent(QTimerEvent*)'
t_automoc.cpp:(.rdata$_ZTV11Oefening11A[_ZTV11Oefening11A]+0x50):
undefined reference toQObject::childEvent(QChildEvent*)'
t_automoc.cpp:(.rdata$_ZTV11Oefening11A[_ZTV11Oefening11A]+0x58):
undefined reference to QObject::customEvent(QEvent*)'
t_automoc.cpp:(.rdata$_ZTV11Oefening11A[_ZTV11Oefening11A]+0x60):
undefined reference toQObject::connectNotify(QMetaMethod const&)'
t_automoc.cpp:(.rdata$_ZTV11Oefening11A[_ZTV11Oefening11A]+0x68):
undefined reference to QObject::disconnectNotify(QMetaMethod const&)'
t_automoc.cpp:(.rdata$_ZTV11Oefening11A[_ZTV11Oefening11A]+0x70):
undefined reference toQWidget::devType() const'
t_automoc.cpp:(.rdata$_ZTV11Oefening11A[_ZTV11Oefening11A]+0x78):
undefined reference to QWidget::setVisible(bool)'
t_automoc.cpp:(.rdata$_ZTV11Oefening11A[_ZTV11Oefening11A]+0x80):
undefined reference toQWidget::sizeHint() const'
t_automoc.cpp:(.rdata$_ZTV11Oefening11A[_ZTV11Oefening11A]+0x88):
undefined reference to QWidget::minimumSizeHint() const'
t_automoc.cpp:(.rdata$_ZTV11Oefening11A[_ZTV11Oefening11A]+0x90):
undefined reference toQWidget::heightForWidth(int) const'
t_automoc.cpp:(.rdata$_ZTV11Oefening11A[_ZTV11Oefening11A]+0x98):
undefined reference to QWidget::hasHeightForWidth() const'
t_automoc.cpp:(.rdata$_ZTV11Oefening11A[_ZTV11Oefening11A]+0xa0):
undefined reference toQWidget::paintEngine() const'
t_automoc.cpp:(.rdata$_ZTV11Oefening11A[_ZTV11Oefening11A]+0xa8):
undefined reference to QWidget::mousePressEvent(QMouseEvent*)'
t_automoc.cpp:(.rdata$_ZTV11Oefening11A[_ZTV11Oefening11A]+0xb0):
undefined reference toQWidget::mouseReleaseEvent(QMouseEvent*)'
t_automoc.cpp:(.rdata$_ZTV11Oefening11A[_ZTV11Oefening11A]+0xb8):
undefined reference to QWidget::mouseDoubleClickEvent(QMouseEvent*)'
t_automoc.cpp:(.rdata$_ZTV11Oefening11A[_ZTV11Oefening11A]+0xc0):
undefined reference toQWidget::mouseMoveEvent(QMouseEvent*)'
t_automoc.cpp:(.rdata$_ZTV11Oefening11A[_ZTV11Oefening11A]+0xc8):
undefined reference to QWidget::wheelEvent(QWheelEvent*)'
t_automoc.cpp:(.rdata$_ZTV11Oefening11A[_ZTV11Oefening11A]+0xd0):
undefined reference toQWidget::keyPressEvent(QKeyEvent*)'
t_automoc.cpp:(.rdata$_ZTV11Oefening11A[_ZTV11Oefening11A]+0xd8):
undefined reference to QWidget::keyReleaseEvent(QKeyEvent*)'
t_automoc.cpp:(.rdata$_ZTV11Oefening11A[_ZTV11Oefening11A]+0xe0):
undefined reference toQWidget::focusInEvent(QFocusEvent*)'
t_automoc.cpp:(.rdata$_ZTV11Oefening11A[_ZTV11Oefening11A]+0xe8):
undefined reference to QWidget::focusOutEvent(QFocusEvent*)'
t_automoc.cpp:(.rdata$_ZTV11Oefening11A[_ZTV11Oefening11A]+0xf0):
undefined reference toQWidget::enterEvent(QEvent*)'
t_automoc.cpp:(.rdata$_ZTV11Oefening11A[_ZTV11Oefening11A]+0xf8):
undefined reference to QWidget::leaveEvent(QEvent*)'
t_automoc.cpp:(.rdata$_ZTV11Oefening11A[_ZTV11Oefening11A]+0x100):
undefined reference toQWidget::paintEvent(QPaintEvent*)'
t_automoc.cpp:(.rdata$_ZTV11Oefening11A[_ZTV11Oefening11A]+0x108):
undefined reference to QWidget::moveEvent(QMoveEvent*)'
t_automoc.cpp:(.rdata$_ZTV11Oefening11A[_ZTV11Oefening11A]+0x110):
undefined reference toQWidget::resizeEvent(QResizeEvent*)'
t_automoc.cpp:(.rdata$_ZTV11Oefening11A[_ZTV11Oefening11A]+0x118):
undefined reference to QWidget::closeEvent(QCloseEvent*)'
t_automoc.cpp:(.rdata$_ZTV11Oefening11A[_ZTV11Oefening11A]+0x120):
undefined reference to
QMainWindow::contextMenuEvent(QContextMenuEvent*)'
t_automoc.cpp:(.rdata$_ZTV11Oefening11A[_ZTV11Oefening11A]+0x128):
undefined reference to QWidget::tabletEvent(QTabletEvent*)'
t_automoc.cpp:(.rdata$_ZTV11Oefening11A[_ZTV11Oefening11A]+0x130):
undefined reference toQWidget::actionEvent(QActionEvent*)'
t_automoc.cpp:(.rdata$_ZTV11Oefening11A[_ZTV11Oefening11A]+0x138):
undefined reference to QWidget::dragEnterEvent(QDragEnterEvent*)'
t_automoc.cpp:(.rdata$_ZTV11Oefening11A[_ZTV11Oefening11A]+0x140):
undefined reference toQWidget::dragMoveEvent(QDragMoveEvent*)'
t_automoc.cpp:(.rdata$_ZTV11Oefening11A[_ZTV11Oefening11A]+0x148):
undefined reference to QWidget::dragLeaveEvent(QDragLeaveEvent*)'
t_automoc.cpp:(.rdata$_ZTV11Oefening11A[_ZTV11Oefening11A]+0x150):
undefined reference toQWidget::dropEvent(QDropEvent*)'
t_automoc.cpp:(.rdata$_ZTV11Oefening11A[_ZTV11Oefening11A]+0x158):
undefined reference to QWidget::showEvent(QShowEvent*)'
t_automoc.cpp:(.rdata$_ZTV11Oefening11A[_ZTV11Oefening11A]+0x160):
undefined reference toQWidget::hideEvent(QHideEvent*)'
t_automoc.cpp:(.rdata$_ZTV11Oefening11A[_ZTV11Oefening11A]+0x168):
undefined reference to QWidget::nativeEvent(QByteArray const&, void*,
long*)'
t_automoc.cpp:(.rdata$_ZTV11Oefening11A[_ZTV11Oefening11A]+0x170):
undefined reference toQWidget::changeEvent(QEvent*)'
t_automoc.cpp:(.rdata$_ZTV11Oefening11A[_ZTV11Oefening11A]+0x178):
undefined reference to
QWidget::metric(QPaintDevice::PaintDeviceMetric) const'
t_automoc.cpp:(.rdata$_ZTV11Oefening11A[_ZTV11Oefening11A]+0x180):
undefined reference toQWidget::initPainter(QPainter*) const'
t_automoc.cpp:(.rdata$_ZTV11Oefening11A[_ZTV11Oefening11A]+0x188):
undefined reference to QWidget::redirected(QPoint*) const'
t_automoc.cpp:(.rdata$_ZTV11Oefening11A[_ZTV11Oefening11A]+0x190):
undefined reference toQWidget::sharedPainter() const'
t_automoc.cpp:(.rdata$_ZTV11Oefening11A[_ZTV11Oefening11A]+0x198):
undefined reference to QWidget::inputMethodEvent(QInputMethodEvent*)'
t_automoc.cpp:(.rdata$_ZTV11Oefening11A[_ZTV11Oefening11A]+0x1a0):
undefined reference to
QWidget::inputMethodQuery(Qt::InputMethodQuery) const'
t_automoc.cpp:(.rdata$_ZTV11Oefening11A[_ZTV11Oefening11A]+0x1a8):
undefined reference to QWidget::focusNextPrevChild(bool)'
t_automoc.cpp:(.rdata$_ZTV11Oefening11A[_ZTV11Oefening11A]+0x1b0):
undefined reference toQMainWindow::createPopupMenu()'
t_automoc.cpp:(.rdata$_ZTV11Oefening11A[_ZTV11Oefening11A]+0x1d8):
undefined reference to non-virtual thunk to QWidget::devType() const'
t_automoc.cpp:(.rdata$_ZTV11Oefening11A[_ZTV11Oefening11A]+0x1e0):
undefined reference tonon-virtual thunk to QWidget::paintEngine()
const'
t_automoc.cpp:(.rdata$_ZTV11Oefening11A[_ZTV11Oefening11A]+0x1e8):
undefined reference to non-virtual thunk to
QWidget::metric(QPaintDevice::PaintDeviceMetric) const'
t_automoc.cpp:(.rdata$_ZTV11Oefening11A[_ZTV11Oefening11A]+0x1f0):
undefined reference tonon-virtual thunk to
QWidget::initPainter(QPainter*) const'
t_automoc.cpp:(.rdata$_ZTV11Oefening11A[_ZTV11Oefening11A]+0x1f8):
undefined reference to non-virtual thunk to
QWidget::redirected(QPoint*) const'
t_automoc.cpp:(.rdata$_ZTV11Oefening11A[_ZTV11Oefening11A]+0x200):
undefined reference tonon-virtual thunk to QWidget::sharedPainter()
const'
Can't find the problem in my cmake file. Can someone help me with this?
Ok I found the issue. I was using a x64 compiler on x86 QT5 libraries. When changing the compiler to a x86 one it compiles.
Besides moc, you will need to run uic as well:
set(CMAKE_AUTOUIC ON)
this is my code:
Ti.Network.addHTTPCookie(Ti.Network.createCookie({
path: currentCookie4,
name: currentCookie2,
value: currentCookie3,
httponly: true,
}));
I got an error saying
Uncaught TypeError: Ti.Network.createCookie is not a function
For some reason Ti.Network.createCookie is undefined. Does anybody know why?