"Private member is not accessible" on Function prototype
Hi,
All of a sudden I have started to get errors on function's prototype: "Private member is not accessible"
Attached a screenshot,
Any ideas?
Thx.
Attachment(s):
ws8prototype.png
请先登录再写评论。
Hi,
All of a sudden I have started to get errors on function's prototype: "Private member is not accessible"
Attached a screenshot,
Any ideas?
Thx.
请先登录再写评论。
Hi there,
Pleae try "File | Invalidate caches..." and restart if you have not done it yet.
Hi,
I just tried that...no luck...
It seems to happen only in my existing project, if I open a new project it seems to be working.
Anything else?
Thx.
Attachment(s):
ws8prototype.png
Not sure at all.
Maybe check your JavaScript Libraries settings -- maybe it has anything to do with them.
Otherwise it has to be some code in your project. I would recommend Ctrl+Click and see where it will take you to.
Hi,
It takes me to "lodash" library (which is a dependency of a dependency of grunt-cli, i.e MyProject\node_modules\grunt-cli\node_modules\findup-sync\node_modules\lodash)
Anyway, the code it taksed me to there is:
if (!nativeCreate) {
baseCreate = (function() {
function Object() {}
return function(prototype) {
if (isObject(prototype)) {
Object.prototype = prototype;
var result = new Object;
Object.prototype = null;
}
return result || context.Object();
};
}());
}
I see why it can be tricky but still, in my other projects (where I have the same pedendency on grunt-cli) it doesn't happen.
Even on my team members WebStorm, where we work on the EXACTLY same project structure, it doesn't happen...
I personally cannot help you here.
If you wish -- submit new ticket to the Issue Tracker , preferrably (higly recommended) with some sample project that reproduces the issue (this will/may speed up things a lot).
Thank you.
As soon as I'll finish my current task I'll delete my projects and clone again from git to really have a start fresh.
If it won't work I'll see if I can reproduce it...
http://youtrack.jetbrains.com/issue/WEB-10275 is fixed in WebStorm 8.0.1
Thx,
Can I get an early access to 8.0.1?
Not yet. Please follow us on Twitter (https://twitter.com/webstormide) or subscribe to our blog (http://blog.jetbrains.com/webstorm/) to stay informed about our releases/EAPs