Comments (7)
Did you run npm install -l
after app initializaton?
from compound.
Have run npm install -l
as well as sudo npm install -l
. But it didn't help.
from compound.
Did you run railway server using railway server
command or using node server.js
?
from compound.
railway server
from compound.
Just tried to reproduce your issue on clean install (linux and mac os), working fine, could you please specify more details? npm version, npm ls -g, npm ls (in application dir).
from compound.
Have the same Issue on Mac OS 10.6.
npm version: 1.1.0-alpha-6
npm ls -g
/usr/local/lib
├─┬ [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ └── [email protected]
└─┬ [email protected]
├── [email protected]
├─┬ [email protected]
│ └── [email protected]
├─┬ [email protected]
│ └── [email protected]
├─┬ [email protected]
│ └── [email protected]
├─┬ [email protected]
│ └─┬ [email protected]
│ ├── [email protected]
│ └── [email protected]
├─┬ [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ ├─┬ [email protected]
│ │ └─┬ [email protected]
│ │ └── [email protected]
│ └── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]
npm ls
[email protected] /Users/gregor/Projects/sides/test
├── [email protected]
├─┬ [email protected]
│ └── [email protected]
├── [email protected] extraneous
├── [email protected] extraneous
├─┬ [email protected]
│ └── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├─┬ [email protected]
│ │ └─┬ [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ ├─┬ [email protected]
│ │ ├─┬ [email protected]
│ │ │ ├── [email protected]
│ │ │ ├── [email protected]
│ │ │ └── [email protected]
│ │ ├─┬ [email protected]
│ │ │ └─┬ [email protected]
│ │ │ └── [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ └── [email protected]
└── [email protected]
node version 0.6.5 from macos pkg-installer
stacktrace from logs:
TypeError: /Users/gregor/Projects/sides/test/app/views/hallos/new.jade:4
2| h1 New hallo
3|
4| - form_for(hallo, {action: path_to.hallos, method: 'POST', id: "hallo_form"}, function (form) {
5| != partial('hallos/form.jade', {locals: {form: form, hallo: hallo}})
6| .actions
7| != form.submit('Create hallo', {class: 'btn'})
Cannot call method 'push' of undefined
at Object.form_tag (/usr/local/lib/node_modules/railway/lib/helpers.js:210:9)
at Object.form_for (/usr/local/lib/node_modules/railway/lib/helpers.js:227:10)
at Object. (eval at (/Users/gregor/Projects/sides/test/node_modules/jade/lib/jade.js:226:10))
at ServerResponse._render (/Users/gregor/Projects/sides/test/node_modules/express/lib/view.js:422:21)
at ServerResponse.render (/Users/gregor/Projects/sides/test/node_modules/express/lib/view.js:315:17)
at Object.render (/usr/local/lib/node_modules/railway/lib/controller.js:368:19)
at Object. (/Users/gregor/Projects/sides/test/app/controllers/hallos_controller.coffee:21:12)
at Object. (/usr/local/lib/node_modules/railway/lib/controller.js:241:28)
at Object. (/usr/local/lib/node_modules/railway/lib/controller.js:257:25)
at Array.0 (/usr/local/lib/node_modules/railway/lib/controller.js:230:28)
<<< new [8 ms]
from compound.
I debuged the issue a little and found, that the "monkey patch" dont work properly. i dont know why, i required "jade-ext" and it gets loaded, but the overridden method is never called on main.
btw. the patch is really ugly...
from compound.
Related Issues (20)
- path.js:204 throw new TypeError('Arguments to path.join must be strings'); HOT 9
- Документация HOT 1
- SHARING CODE ACROSS CONTROLLERS
- Generators create tests HOT 2
- Model api does not fully work with memory
- Serving static files HOT 1
- Router matching multiple routes to controllers HOT 1
- Cannot read property 'skipLogging' of undefined HOT 2
- SyntaxError: Unexpected token >
- Console: change __dirname to expected __dirname
- Comparison with Meteor HOT 1
- Bug with assets compiler HOT 1
- has an error with command node .
- Status of the project HOT 6
- Can't install Compound HOT 1
- Error Installing compound HOT 1
- TypeError: Cannot read property 'enabled' of undefined while creating app
- Cannot generate scaffold per crash course
- Error starting after `compound generate crud post title content...` HOT 2
- Question: migrate from compound to pure ExpressJS HOT 3
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 compound.