cloudinary / cloudinary-js-streaming Goto Github PK
View Code? Open in Web Editor NEWCloudinary Live Streaming Javascript SDK
Home Page: https://cloudinary.com/
License: MIT License
Cloudinary Live Streaming Javascript SDK
Home Page: https://cloudinary.com/
License: MIT License
Hi.
I get the following error when trying to compile my react app when I try to import the modules: initLiveStream, attachCamera, detachCamera from @cloudinary/js-streaming.
And I really don't know how to fix it
ReferenceError: self is not defined
at Module../node_modules/whatwg-fetch/fetch.js (\node_modules\@cloudinary\js-streaming\dist\js-streaming.js:20303:38)
at __webpack_require__ (\node_modules\@cloudinary\js-streaming\dist\js-streaming.js:30:30)
at Module../src/stream.js (\node_modules\@cloudinary\js-streaming\dist\js-streaming.js:20975:70)
at __webpack_require__ (\node_modules\@cloudinary\js-streaming\dist\js-streaming.js:30:30)
at Module../src/index.js (\node_modules\@cloudinary\js-streaming\dist\js-streaming.js:20947:65)
at __webpack_require__ (\node_modules\@cloudinary\js-streaming\dist\js-streaming.js:30:30)
at Object.0 (\node_modules\@cloudinary\js-streaming\dist\js-streaming.js:21432:18)
at __webpack_require__ (\node_modules\@cloudinary\js-streaming\dist\js-streaming.js:30:30)
at \node_modules\@cloudinary\js-streaming\dist\js-streaming.js:94:18
at \node_modules\@cloudinary\js-streaming\dist\js-streaming.js:97:10
at webpackUniversalModuleDefinition (\node_modules\@cloudinary\js-streaming\dist\js-streaming.js:3:20)
at Object.<anonymous> (\node_modules\@cloudinary\js-streaming\dist\js-streaming.js:10:3)
at Module._compile (internal/modules/cjs/loader.js:1133:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1153:10)
at Module.load (internal/modules/cjs/loader.js:977:32)
at Function.Module._load (internal/modules/cjs/loader.js:877:14)
Error: only one instance of babel-polyfill is allowed
at Object.<anonymous> (\node_modules\@cloudinary\js-streaming\dist\js-streaming.js:116:9)
This would be my packaje.json:
{
"name": "next-stream",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start"
},
"dependencies": {
"@cloudinary/js-streaming": "^1.2.0",
"next": "9.4.4",
"react": "16.13.1",
"react-dom": "16.13.1",
"react-player": "^2.3.1"
}
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.