Polymer / tools

Polymer Tools Monorepo
BSD 3-Clause "New" or "Revised" License
430 stars 200 forks source link

Getting "Can’t find variable: babelHelpers" when I set compile to true #2469

Closed Homa closed 5 years ago

Homa commented 7 years ago

Description

I use Polymer 2.0 and my build setting is: "builds": [ { "name": "bundled", "bundle": true, "js": { "compile": true, "minify": true}, "css": { "minify": true }, "html": { "minify": true } }

EDIT: I was getting "Can’t find variable: babelHelpers" error when I was using polymer-cli locally. After installing latest polymer-cli globally, now I get “Constructor requires ‘new’ operator” in safari and “Failed to construct ‘HTMLElement’: Please use the ‘new’ operator, this DOM object constructor cannot be called as a function.” in chrome.

sample project: https://github.com/Homa/polymer2-test

Versions & Environment

Homa commented 7 years ago

used webcomponents-loader.js instead of webcomponents-lite.js and my problem solved.