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

ReferenceError: PathObserver is not defined when loading in node-webkit #228

Closed
cadorn opened this issue Aug 4, 2013 · 3 comments
Closed

Comments

@cadorn
Copy link

cadorn commented Aug 4, 2013

I am trying to load polymer-all/polymer/polymer.js (stable v0.0.20130802 and master] in node-webkit version v0.6.3 and am getting the following errors:

Uncaught ReferenceError: PathObserver is not defined template_element.js:508
Runner template_element.js:508
(anonymous function) template_element.js:550
(anonymous function) template_element.js:566
(anonymous function) template_element.js:1432

Uncaught TypeError: Object #<Object> has no method 'performMicrotaskCheckpoint'   patches-mdv.js:23
check patches-mdv.js:23
dirtyCheck patches-mdv.js:17
scope.flush patches-mdv.js:33
(anonymous function) boot.js:26
@dfreedm
Copy link
Member

dfreedm commented Aug 5, 2013

It looks like the node.js global namespace is colliding with how MDV boots itself. All the MDV modules are wrapped in an IIFE that uses global as the loading scope

(function(global) {
...
})(typeof global !== 'undefined' ? global : this);

Since this is really an MDV issue, I'll post that bug over there.

@rafaelw
Copy link
Contributor

rafaelw commented Aug 8, 2013

That line was added by Sam Duvall here: googlearchive/observe-js#17

Any chance I can get someone to craft a pull request which fixes this correctly for all node contexts?

Also, note that ChangeSummary has been renamed to ObserveJS and moved into the Polymer organization here: https://github.com/Polymer/ObserveJS

@wilkerlucio
Copy link

I'm having this issue here, it actually starts with not finding ArraySplice... any hint on how to fix that? I really wanna use polymer with node-webkit...

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

4 participants