Giter Club home page Giter Club logo

Comments (8)

physcopanda avatar physcopanda commented on August 16, 2024

Yea I got this problem too - not sure what causes it

from shader-school.

physcopanda avatar physcopanda commented on August 16, 2024

require('insert-css')(
fs.readFileSync(__dirname + '/style.css', 'utf8') <-- stops right here saying "Uncaught TypeError. undefined is not a function"
)

from shader-school.

physcopanda avatar physcopanda commented on August 16, 2024

WAHOOO I got it to work!

Update your GIT install to the latest one - I just installed v.1.9.4 from http://msysgit.github.io/

Then try installing from GIT BASH

It works straight away for me then.

from shader-school.

dannyfritz avatar dannyfritz commented on August 16, 2024

I just ran into this and running form Git Bash allowed me to run shader-school too. I was getting the same function undefined error.

from shader-school.

joshball avatar joshball commented on August 16, 2024

This is still an issue (10/23/2014). I think running from bash might be a work around, but not a solution.
The problem seems to be that the browser is attempting to make a node file system call (fs.readFileSync). This is part of index.js. I am not sure if this is supposed to be stubbed out to a network request? Or if there is something more fundamentally broken.

from shader-school.

dy-dx avatar dy-dx commented on August 16, 2024

@joshball I think you are having the same issue I encountered here: #58 due to a bug in browserify. There is a pull-request open for browserify that should fix it...

from shader-school.

hughsk avatar hughsk commented on August 16, 2024

Fixed as of 344dd3d :)

from shader-school.

RoystonS avatar RoystonS commented on August 16, 2024

Btw, npm install -g shader-school still arrives the same error because there isn't yet an npm-visible release that contains this fix.

from shader-school.

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.