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
Dependency missing? #7
Comments
Sorry - it's because I switched to an offline version of jQuery, but it's not resolving the directory - I've switched it back whilst I work out why it messed up. Just do an |
Hmmm. Still getting the same error... |
Can you share what url you're testing - so I can try to replicate the problem? |
Just doing: inliner http://remysharp.com Here's my npm ls installed output: npm info it worked if it ends with ok |
Also noticed the jsdom wasn't using the latest so updated that, but with no luck... |
Same for me. I've installed via both $ → inliner --verbose http://remysharp.com
get http://remysharp.com
TypeError: Cannot call method 'runInContext' of undefined
at Object.javascript (/usr/local/lib/node_modules/inliner/node_modules/jsdom/lib/jsdom/level2/languages/javascript.js:17:14)
at Object._eval (/usr/local/lib/node_modules/inliner/node_modules/jsdom/lib/jsdom/level2/html.js:1195:46)
at /usr/local/lib/node_modules/inliner/node_modules/jsdom/lib/jsdom/level2/html.js:43:20
at Object.check (/usr/local/lib/node_modules/inliner/node_modules/jsdom/lib/jsdom/level2/html.js:235:11)
at /usr/local/lib/node_modules/inliner/node_modules/jsdom/lib/jsdom/level2/html.js:251:12
at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/inliner/node_modules/jsdom/lib/jsdom/level2/html.js:85:11)
at IncomingMessage.emit (events.js:81:20)
at HTTPParser.onMessageComplete (http.js:133:23)
at Client.onData [as ondata] (http.js:1513:27)
at Client._onReadable (net_legacy.js:683:27)
at IOWatcher.onReadable [as callback] (net_legacy.js:177:10)
TypeError: Object #<Object> has no method '$'
at /usr/local/lib/node_modules/inliner/inliner.js:77:16
at /usr/local/lib/node_modules/inliner/node_modules/jsdom/lib/jsdom.js:207:13
at /usr/local/lib/node_modules/inliner/node_modules/jsdom/lib/jsdom.js:212:11
at Object.<anonymous> (/usr/local/lib/node_modules/inliner/node_modules/jsdom/lib/jsdom/level2/events.js:274:17)
at Object.dispatchEvent (/usr/local/lib/node_modules/inliner/node_modules/jsdom/lib/jsdom/level2/html.js:415:55)
at /usr/local/lib/node_modules/inliner/node_modules/jsdom/lib/jsdom/level2/html.js:56:15
at Object.check (/usr/local/lib/node_modules/inliner/node_modules/jsdom/lib/jsdom/level2/html.js:235:11)
at /usr/local/lib/node_modules/inliner/node_modules/jsdom/lib/jsdom/level2/html.js:251:12
at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/inliner/node_modules/jsdom/lib/jsdom/level2/html.js:85:11)
at IncomingMessage.emit (events.js:81:20) |
This is fixed @ 1.0.0. |
I'm running via npm. Install went perfectly fine, but then when I run the inliner command I get this error:
TypeError: Object # has no method '$'
at /usr/local/lib/node/.npm/inliner/0.0.7/package/inliner.js:152:12
at /usr/local/lib/node/.npm/jsdom/0.2.0/package/lib/jsdom.js:207:13
at /usr/local/lib/node/.npm/jsdom/0.2.0/package/lib/jsdom.js:212:11
at Object. (/usr/local/lib/node/.npm/jsdom/0.2.0/package/lib/jsdom/level2/events.js:274:17)
at Object.dispatchEvent (/usr/local/lib/node/.npm/jsdom/0.2.0/package/lib/jsdom/level2/html.js:415:55)
at /usr/local/lib/node/.npm/jsdom/0.2.0/package/lib/jsdom/level2/html.js:56:15
at Object.check (/usr/local/lib/node/.npm/jsdom/0.2.0/package/lib/jsdom/level2/html.js:235:11)
at /usr/local/lib/node/.npm/jsdom/0.2.0/package/lib/jsdom/level2/html.js:251:12
at [object Object]. (fs.js:107:5)
at [object Object].emit (events.js:61:17)
The text was updated successfully, but these errors were encountered: