Giter Site home page Giter Site logo

Comments (5)

beeman avatar beeman commented on August 15, 2024 1

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.

ritch avatar ritch commented on August 15, 2024

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.

acao avatar acao commented on August 15, 2024

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.

ritch avatar ritch commented on August 15, 2024

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.

dhmlau avatar dhmlau commented on August 15, 2024

Closing due to inactivity.

from angular-live-set.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.