I experienced the following error when using polymer-build with yarn.
Here is the repo. Check 0.5.1-yarn branch as well.
(node:5856) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): Error: Error parsing src/components/app/sandbox-app/sandbox-app.html:
TypeError: Cannot read property 'ecmaFeatures' of undefined
at Parser.parseTopLevel (D:\Code\polymer-sandbox\node_modules\hydrolysis\node_modules\espree\espree.js:267:22)
at Parser.parse (D:\Code\polymer-sandbox\node_modules\acorn\dist\acorn.js:528:15)
at Object.parse (D:\Code\polymer-sandbox\node_modules\acorn\dist\acorn.js:3357:37)
at Object.parse (D:\Code\polymer-sandbox\node_modules\polymer-analyzer\node_modules\espree\espree.js:735:21)
at JavaScriptParser.parse (D:\Code\polymer-sandbox\node_modules\polymer-analyzer\lib\javascript\javascript-parser.js:30:26)
at Analyzer._parseContents (D:\Code\polymer-sandbox\node_modules\polymer-analyzer\lib\analyzer.js:380:27)
at Analyzer.<anonymous> (D:\Code\polymer-sandbox\node_modules\polymer-analyzer\lib\analyzer.js:225:36)
at next (native)
at D:\Code\polymer-sandbox\node_modules\polymer-analyzer\lib\analyzer.js:20:65
at __awaiter (D:\Code\polymer-sandbox\node_modules\polymer-analyzer\lib\analyzer.js:16:12)
Environment:
- node 6.9.4
- yarn 0.18.1
- polymer-build: 0.5.1 and 0.6.0
- polymer-analyzer: 2.0.0-alpha.18 and 2.0.0-alpha.20 respectively
- OS Windows 7
Not sure if this is an issue with analyzer itself, or some yarn's bug.
Looks like espree required by hydrolysis causes this.
I experienced the following error when using polymer-build with yarn.
Here is the repo. Check 0.5.1-yarn branch as well.
Environment:
Not sure if this is an issue with analyzer itself, or some yarn's bug.
Looks like
espreerequired byhydrolysiscauses this.