-
Notifications
You must be signed in to change notification settings - Fork 29
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
Cannot read property 'url' of undefined #2
Comments
@patricklehmann I'm having this same issue. Did you ever resolve it? |
Sorry for my late reply. Is this happening in a prerender project? The prerender-mongodb-cache is supposed to run as a plugin of it. |
@lammertw Yes, I have a prerender.io deployed to Heroku, prerender-mongodb-cache installed, and MongoLab added on to the heroku instance. Confirm my prerender server works with plugins disabled. My #!/usr/bin/env node
This immediately causes a node crash when requesting a URL:
Any help is greatly appreciated. Thanks! |
I think it might be because of changes in the prerender code. I recently merged a pull request that also fixed compatibility issues. I haven't had much time lately to work on this myself but hopefully next weekend I'll get some time to work on my own project in which I'm using it and I'll bring it up to date with the latest prerender version and also mention in the README with which version it's compatible. |
@lammertw I was able to get it working simply by forking lammertw/prerender-mongodb-cache.git to outrightmental/prerender-mongodb-cache.git and (without making any changes to your latest code) specifying the latter URL manually in the package.json I pushed to my Heroku app. Perhaps the only blocker is pushing the latest code to NPM? |
Hey there,
i just added prerender-mongodb-cache to my application and all i get is a Cannot read property 'url' of undefined. Can someone help me?
these are my dependencies...
"dependencies": {
"lodash": "~2.4.0",
"cache-manager": "0.2.0",
"aws-sdk": "~1.13.0",
"phantom": "~0.5.7",
"phantomjs": "~1.9.7-1",
"prerender-mongodb-cache": "0.0.1"
},
thanks a lot!!
kind regard, patrick
The text was updated successfully, but these errors were encountered: