I encountered an error while trying to create kurento-client-js using Webpack 2 + babel.
WARNING in ./node_modules/kurento-client/lib/register.js 60:20-33 Critical dependency: the request of a dependency is an expression
When executed, this leads to
Uncaught Error: Cannot find module "."
I believe the problem itself is caused by require inside /lib/register.js
//kurento-clinet/lib/register.js if (constructor == undefined) return register(require(name));
And the code causing the error:
//kurento-clinet/lib/index.js //this module requires kurento-client resulting in circular reference register('kurento-client-core')
The kurento bower package contains a distribution built using a browser.
Interestingly, someone tried to create kurento-client-js using webpack. Share your experience.
EDIT
Trace stack error circular dependency:
Uncaught TypeError: Cannot read property 'MediaObject' of undefined at Object._typeof (KurentoClient.js:42) at __webpack_require__ (bootstrap 0d7eac46304670c5f3b5:19) at Object._typeof (index.js:44) at __webpack_require__ (bootstrap 0d7eac46304670c5f3b5:19) at Object.module.exports (HubPort.js:21) at __webpack_require__ (bootstrap 0d7eac46304670c5f3b5:19) at Object._typeof (index.js:32) at ...
javascript webpack babeljs kurento
kreig
source share