Code Monkey home page Code Monkey logo

Comments (6)

feliixx avatar feliixx commented on May 27, 2024

I could solve the issue by re-generating the browserified file :

browserify index.js --s blasterjs > blasterjs.js

maybe you could consider update the browserify command in package.json !

from biojs-vis-blasterjs.

abmiguez avatar abmiguez commented on May 27, 2024

Hi Adrien,
First of all thank you very much for reporting this bug.
We have tested on different machines and we can not get the build / blasterjs.js file wrong. We have tried installing it directly with "npm install biojs-vis-blasterjs" and also cloned it from Github and running "npm install", and with both methods it generates, on all machines, the files correctly.
If you check the example on BioJS Registry (http://biojs.io/d/biojs-vis-blasterjs) also builds it correctly.
When you run the command "npm install", it must automatically run the "build" command which in turn runs "browserfy".

We will continue to test to find the source of this error.

Regards,
Aitor

from biojs-vis-blasterjs.

feliixx avatar feliixx commented on May 27, 2024

Thanks for the answer, I forgot to mention that we're using node version 7.1.0, npm version 3.10.9 and browserify version 13.1.1 on ubuntu 16.04

from biojs-vis-blasterjs.

abmiguez avatar abmiguez commented on May 27, 2024

Hi Adrien, could you send to [email protected] the build/blasterjs.js file that was generated erroneously with the "npm install" command?

from biojs-vis-blasterjs.

feliixx avatar feliixx commented on May 27, 2024

Ok it looks like the problem doesn't come from the file itself. After npm install, the script works fine with your example, but it throw errors in my webapp ( the same code works fine with the javascript file generated with the --s option). I'm also using JQuery 1.8.2 and spin.js ( http://spin.js.org/ ) on this page, could it be a kind of scope conflict?

from biojs-vis-blasterjs.

abmiguez avatar abmiguez commented on May 27, 2024

No, at first there is no conflict with those two scripts. What I've checked is that with the script generated manually with Browserify this line "var blasterjs = require (" biojs-vis-blasterjs ")" is not required.
If the script generated with the command "npm install" was generated correctly, or you lack that line where you define blasterjs (var blasterjs = require (" biojs-vis-blasterjs ");), or we have to continue looking for the root of that error.

from biojs-vis-blasterjs.

Related Issues (12)

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.