Giter Site home page Giter Site logo

Comments (8)

Hiswe avatar Hiswe commented on June 2, 2024

Hi,

Thanks for using this lib!

If you run the demo as specified here and open the test-global.html do you still have the same error ?

By the way, it's strange that Factory has an uppercase F

from vh-check.

janwidmer avatar janwidmer commented on June 2, 2024

Running npm test gives me the error

npm ERR! Darwin 15.6.0
npm ERR! argv "/Users/jawidmer/.nvm/versions/node/v6.9.4/bin/node" "/Users/jawidmer/.nvm/versions/node/v6.9.4/bin/npm" "test"
npm ERR! node v6.9.4
npm ERR! npm  v4.2.0
npm ERR! path /Users/jawidmer/package.json
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall open

npm ERR! enoent ENOENT: no such file or directory, open '/Users/jawidmer/package.json'
npm ERR! enoent ENOENT: no such file or directory, open '/Users/jawidmer/package.json'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent 

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/jawidmer/.npm/_logs/2017-02-06T14_09_58_700Z-debug.log

from vh-check.

Hiswe avatar Hiswe commented on June 2, 2024

@janwidmer you should run the commands inside the vh-check folder, at the same level as the package.json

from vh-check.

janwidmer avatar janwidmer commented on June 2, 2024

ah yeah, sorry..my bad. Your demo works.. so I guess, my environment somehow leads to that behaviour.. in your demo, the root parameter is the window as it should be, in my case, it is always undefined..

from vh-check.

Hiswe avatar Hiswe commented on June 2, 2024

Are you compressing the file in anyway ? or using it along other files ? In which browser are you using it ?

from vh-check.

janwidmer avatar janwidmer commented on June 2, 2024

It gets assembled to an app.js file, which contains all js files.. I am using it in chrome vs. 55

from vh-check.

Hiswe avatar Hiswe commented on June 2, 2024

So it may be while concatenating your files that the window object becomes unaccessible to my script.
You should try to load it independently to see if it comes from here or not.

from vh-check.

janwidmer avatar janwidmer commented on June 2, 2024

ok I'll try that..since it works in your demo, its clearly related to my build..I will therefore close the issue. Thanks for your help

from vh-check.

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.