Comments (5)
I encountered this issue when including this module in webback.
Since I wanted to play with this module I have create a quick-and-dirty patch that fixes the issue for me: beeman@4d4209a
It would be nice if webpack would be supported.
from angular-live-set.
Somehow the stream
variable is not available. A version of the module should be bundled as a global variable in live-set.js
.
from angular-live-set.
It is! But I think the module wasn't loading properly as it was packaged in my runtime. I've moved away from using angular for this project but here is what was happening.
I was not using browserify or requirejs or a script tag, but basically require() in electron.js. It was somehow able to load the angular module but not the Stream module from the global scope in my particular configuration. I tried doing var stream = require('stream') in the contest so that it would be, but i don't think it was in the right order because your script could not find it at compile time. It could also have been the way that babel was loading modules - I think you need special configuration for it to work with AMD modules properly.
In the future if people have this issue with electron.js or nw.js, I would suggest that they use jspm + system.js
from angular-live-set.
Hmm - ya we should probably support browserify
style module loading a bit better. In that case, there is no reason to shim the stream
module at all... I wonder if the package.json should just point to a slim wrapper around that requires live-set.js
. Something like:
// require-shim.js
module.exports = function(stream) {
// contents of live-set.js
};
// main / index.js
require('./require-shim.js')(require('stream'));
from angular-live-set.
Closing due to inactivity.
from angular-live-set.
Related Issues (20)
- Error when testing change stream HOT 5
- What's the best practice for monitoring a filtered stream? HOT 16
- Is it working on Ionic? Mine is not HOT 7
- The magic of LiveSet stop whenever I call the method twice !!! HOT 10
- change-stream?_format=event-source net::ERR_INCOMPLETE_CHUNKED_ENCODING HOT 6
- $watch function can't catch changes ????? HOT 5
- Optimistic create HOT 2
- Custom script doesn't seem to affect the ChangeStream HOT 1
- Module is not available on npm HOT 1
- Does not work with non-integer ids HOT 4
- Internet Explorer Comptability Solved
- Create 2.x branch and change master to use Loopback 3.0
- Use ESLint instead of JSHint HOT 1
- CI failing for node 0.12 on Windows HOT 4
- Listen for changes for a single object HOT 2
- Limit and Skip, how to use LiveSet with paging? HOT 4
- CI failure HOT 1
- PATCH / updates to attributes not caught in LiveArrays HOT 3
- Docs contain the wrong file name HOT 3
- Add license 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 angular-live-set.