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

Polymer Build: js-transform: Unable to optimize... #3389

Closed
busynest opened this issue Mar 29, 2019 · 4 comments
Closed

Polymer Build: js-transform: Unable to optimize... #3389

busynest opened this issue Mar 29, 2019 · 4 comments

Comments

@busynest
Copy link

busynest commented Mar 29, 2019

For the past few weeks, all new project do not build properly. must have come in the latest updates.

info: (es5-bundled) Building...
warn: js-transform: Unable to optimize C:\Users\BusyNest\Desktop\dev\tp-web\src\components\my-app.js
{ err: 'Cannot read property 'isIfStatement' of null' }
info: (es5-bundled) Build complete!

@Westbrook
Copy link

You can see this occur by taking a clean clone of pwa-starter-kit switching to template-typescript and running yarn build:static.

After a quick review I'm not seeing any issues with the actual code output, but it's certainly an annoyance.

@usergenic
Copy link
Contributor

#3388 should fix this.

@usergenic
Copy link
Contributor

tl;dr - it's a problem with babel-preset-minify so we disable a few plugins it uses to work around the issue.

@usergenic
Copy link
Contributor

Published [email protected] and [email protected] fixing this issue.

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

3 participants