Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

misconfigured package.json #2

Closed
janwirth opened this issue Jan 8, 2015 · 3 comments
Closed

misconfigured package.json #2

janwirth opened this issue Jan 8, 2015 · 3 comments

Comments

@janwirth
Copy link
Collaborator

janwirth commented Jan 8, 2015

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
Copy link
Collaborator Author

janwirth commented Jan 8, 2015

solved
SHA: 82dd704

@janwirth
Copy link
Collaborator Author

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
Copy link
Collaborator Author

so require calls still don't work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant