Comments (5)
Which version of Node.js are you using? You can find it out by running node --version
.
Also try to run the following in your environment:
$ node -p 'new Promise((f, r) => f(42))'
Promise { 42 }
from chrome-remote-interface.
node version: v0.10.25
root@9886acca1338:/producer# node --version
v0.10.25
Now, I've migrated the docker container to Ubuntu 16.04 and it seems to have fixed the problem.
I'll dig further to gather a bit more info.
It seems that
npm install es6-promise
and putting this in the js also might work
var Promise = require("es6-promise").Promise
from chrome-remote-interface.
Yup, that's the problem, native ES6 promises are not present in v0.10.25. IMHO updating to a more recent version of Node.js is better than using a polyfill.
I should probably state the minimum required Node.js version in package.json
.
from chrome-remote-interface.
Thanks for the time and replies. I thought this is not a bug from your code, just I didn't know where to go :)
I'll close this.
from chrome-remote-interface.
You're welcome!
I've added the check in the package.json
, you should now get a warning if you use a version older than 0.12.15.
from chrome-remote-interface.
Related Issues (20)
- [question] how to connect to a iframe in a Electron webview? HOT 1
- The client disconnects when I close all "non-system tabs" HOT 6
- nodeHighlightRequested did not trigger HOT 1
- question - does this work with multiple concurrent contexts/sessions? HOT 2
- TS typings do not support the `sessionId` parameter. HOT 4
- Property 'redirectHasExtraInfo' is missing in type HOT 3
- How can I listen all the client side event? HOT 2
- Node exited with WebSocket is not open: readyState 2 (CLOSING) HOT 3
- How to copy string to clipboard with Runtime.evaluate? HOT 1
- Debugger for nested iframes from another origin HOT 2
- failed to load response, no resource with given identifier found HOT 3
- Unable to Run SystemInfo.getProcessInfo; Browser Target not listed in Target.getTargets HOT 1
- chrome-remote-interface activate returns not found for Firefox HOT 3
- Page.navigate loads in an inactive tab
- Error: Can only get response body on requests captured after headers received. HOT 2
- Sending Fetch.failRequest to new tab before initial request
- The current page is embedded with an iframe, which has an upload button with<input type="file"/>. How can I enter the iframe, access this button, and insert the file path into it? HOT 3
- cannot close browser with out HOT 2
- How to evaluate javascript inside an iframe? HOT 11
- Clicking inside an iframe? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chrome-remote-interface.