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
Enabled Support for Node.js 5.x & 6.x #1031
Comments
My error search so far has led to the method hasOwnProperty, which seems to have become deprecated in the newest version of V8. Don't really know the full implications of that, but others might. Perhaps This description can shed some light on the issue. Still I'm a little impatient, so I've made the following two quick fixes. They allow me to log in and work without bumping into any errors so far in Node.js 6.1.0:
Changed from:
Changed from: The method hasOwnProperty is used several places in the PencilBlue code. Furthermore, my quick fix also tests for occurences in the prototype chain, which hasOwnProperty doesn't. So I guess, it's only a question of time, when the first error will occur. That's why a full adaptation to Node.js 6.X would come in really handy... |
@JLKM in the PR I just merged, last night into 0.6.0 branch, I made those changes to the almost all of the references to I understand why they made the change but seems like it will cause more problems than its worth. You can pull the 0.6.0 branch if you'd like to test drive things. The branch should be stable. |
Thanks a lot for the faster than fast response. About 10 hours. Real impressive. I'll try to catch up! Have roled the 0.6.0 branch out on my installation. Initialization of existing themes resulted in errors. But that might be a minor thing. The good news: Login works like a charm. I run multisite, and I can switch from site to site in admin. Also from web in read-mode. Sections and topics are also visible an unchanged. The bad news: Page-view and article-view fails from admin. I get a big rotatating circle instead. The weird news: When articles are inaccessible from admin, they still show up in read-mode... My shot: Deletion of all pages and articles in the corresponding collections in MongoDB. But same result: A rotation circle in the admin view. But it appears really close to working perfect. Next I'll try to build up a new 0.6.0 site from scratch - and perhaps multisite: false. Here are the mongod-logs: Before deletion of all articles and pages: C:\Program Files\MongoDB\Server\3.2\bin>mongod After deletion of all articles and pages: C:\Program Files\MongoDB\Server\3.2\bin>mongod |
Description:
We've had a lot of questions regarding failures when using node 5.x. We should investigate these and provide fixes in order to support these users who click the "download latest" button on the Node.js site.
Steps to Reproduce:
See other issues regarding failures around v5 and v6.
Configuration Details:
N/A
Log Output:
N/A
PencilBlue Version: 0.6.0
Node.js Version: 5.11
Environment Description:
N/A
The text was updated successfully, but these errors were encountered: