Open mgibas opened 6 years ago
it is const
I am also having this issue. I understand that it is a const
but the question is why. The issue linked above by RebeccaStevens implies that the modularizer isn't converting it properly. Would love to see this fixed.
Locally I converted
export const _lockingElements = [];
export const _lockedElementCache = null;
export const _unlockedElementCache = null;
to
export var _lockingElements = [];
export var _lockedElementCache = null;
export var _unlockedElementCache = null;
Which resolved the webpack error but still results in a runtime error: _boundScrollHandler
is undefined.
Also, tracking backward in the code it looks like iron-scroll-manager
is trying to use Polymer
but it's not imported anywhere that I can see.
I can confirm the issue for the newest pre-12 version as well
@aomarks FYI - would it help to mark those properties as @private
?
At a high level, we unfortunately have not been testing any Polymer 3 pre-release code with Closure compilation yet, and have no handling in modulizer to update Closure annotations to match the transformed code, so I would expect all kinds of issues until we do that.
I think this deals with the same issue: https://github.com/Polymer/polymer-modulizer/issues/345
Latest version 3.0.0-pre.10 gives me an error during webpack build:
as well as during a runtime: