Closed ghost closed 7 years ago
You should not ignore TypeScript errors.
What is actual error? I may be able to fix.
Some errors are just hints, and can safely be ignored. But I admit, I was a bit too lazy to go through them. It seems like the problem is inside a typings file:
shadowRoot?: webcomponents.ShadowRootPolyfill;
~~~~~~~~~~
typings/globals/webcomponents.js/index.d.ts(48,5): error TS2403: Subsequent variable declarations must have the same type. Variable 'shadowRoot' must be of type 'ShadowRoot', but here has type 'ShadowRootPolyfill'.
shadowRoot?: webcomponents.ShadowRootPolyfill;
~~~~~~~~~~
typings/globals/webcomponents.js/index.d.ts(48,5): error TS2687: All declarations of 'shadowRoot' must have identical modifiers.
Thank you for the log. I'll check the type definition. Type definition may be updated for Polymer 2.
No problem :)
Sometimes (e.g. due to typings updates), there will appear errors in the source which prevents the package to be built, even though it works. To remedy this,
noEmitOnErrors
has been set tofalse
and the build script has been updated to package even when there were TypeScript errors.