Comments (1)
JS compiled from library code in BuckleScript is not available in the browser context. We need to inject it somehow. Currently you could load the necessary modules manually into the browser context using Page.addScriptTag
but I would like to come up with a more general solution eventually. If we load the entire BuckleScript library on the page along with whatever 3rd-party libs like Webapi it should work.
I would be happy to help out if you're interested in investigating a workaround or way we can better support this in the library. There's an existing issue for this general problem: #72
from bs-puppeteer.
Related Issues (20)
- Update API for Puppeteer 1.10
- An in-range update of bs-platform is breaking the build 🚨 HOT 4
- Update API for Puppeteer 1.11 (Page.setContent change)
- examples/search error HOT 1
- Please release new version with methodToJs → method_ToJs HOT 1
- An in-range update of lint-staged is breaking the build 🚨 HOT 13
- An in-range update of husky is breaking the build 🚨 HOT 2
- Test suite fails to run on puppeteer@next
- Inject needed bucklescript imports into functions evaluated in the browser HOT 1
- add BrowserContext.overridePermissions
- add Page.setGeolocation function
- Add "referer" parameter to Page.goto()
- Add Response.remoteAddress()
- expose multiple execution contexts in Frame
- Allow launch options field "ignoreDefaultOptions" to take an array(string)
- Add Response.statusText()
- How to use dialog? HOT 3
- Puppeteer 1.9 features
- An in-range update of bs-platform is breaking the build 🚨 HOT 2
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 bs-puppeteer.