Giter Club home page Giter Club logo

Comments (7)

anatoliychakkaev avatar anatoliychakkaev commented on August 24, 2024

Did you run npm install -l after app initializaton?

from compound.

romanoff avatar romanoff commented on August 24, 2024

Have run npm install -l as well as sudo npm install -l. But it didn't help.

from compound.

anatoliychakkaev avatar anatoliychakkaev commented on August 24, 2024

Did you run railway server using railway server command or using node server.js?

from compound.

romanoff avatar romanoff commented on August 24, 2024

railway server

from compound.

anatoliychakkaev avatar anatoliychakkaev commented on August 24, 2024

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.

 avatar commented on August 24, 2024

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.

 avatar commented on August 24, 2024

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)

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.