Comments (8)
Yea I got this problem too - not sure what causes it
from shader-school.
require('insert-css')(
fs.readFileSync(__dirname + '/style.css', 'utf8') <-- stops right here saying "Uncaught TypeError. undefined is not a function"
)
from shader-school.
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.
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.
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.
@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.
Fixed as of 344dd3d :)
from shader-school.
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)
- Geometry examples are not verified properly
- "Maximum call stack size exceeded" on install
- Feature: lightweight models
- Intro 3 example is confusing. HOT 1
- Course Review HOT 6
- Hardcoded localhost prevents remote use HOT 2
- Failed installation on windows HOT 1
- Intro-6 (matrices): Code example for retrieving matrix' column as vector HOT 1
- Install hangs on linux raspian pixel on pc
- Web-only version?
- Failed Install on Windows multiple git errors
- what's the detail about diffuse light HOT 1
- deprecated node modules
- Intro-2 seems broken
- npm install HOT 1
- typo in intro-6 description
- Can't install shader-school HOT 5
- vert-1 crashing HOT 1
- Is this repo still active? HOT 1
- lessons need links to further information eg how to plot a circle/triangle etc
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 shader-school.