SE7ENSKY / jade2php

Unlock Jade for PHP! Convert Jade templates into raw PHP templates. CLI tool and JavaScript API. Test covered.
43 stars 10 forks source link

misconfigured package.json #2

Closed janwirth closed 9 years ago

janwirth commented 9 years ago

coffee> require './node_modules/jade2php/src/jade2php' [Function]

coffee> require 'jade2php' Error: Cannot find module 'jade2php' at Function.Module._resolveFilename (module.js:338:15) at Function.Module._load (module.js:280:25) at sandbox.require._require (/usr/lib/coffee-script/lib/coffee-script/coffee-script.js:121:25) at evalmachine.:3:5 at Object.exports.eval (/usr/lib/coffee-script/lib/coffee-script/coffee-script.js:146:17) at Interface.run (/usr/lib/coffee-script/lib/coffee-script/repl.js:145:41) at Interface.EventEmitter.emit (events.js:95:17) at Interface._onLine (readline.js:202:10) at Interface._line (readline.js:531:8) at Interface._ttyWrite (readline.js:760:14)

require calls that do not specify the exact jade2php path will fail.

the entry point needs to be adjusted in the package.json file and a main js needs to be created.

janwirth commented 9 years ago

solved SHA: 82dd70490ebe899cfedb68d261f33267d10d488a

janwirth commented 9 years ago

i made a mistake, in fact, defining a main entry point without coffee or js extension is the way to go. pull requests incoming.

janwirth commented 9 years ago

so require calls still don't work.