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-cli] Error: Found extraneous } in Chalk template literal #595

Closed
lpellegr opened this issue Jul 19, 2018 · 5 comments · Fixed by #612
Closed

[polymer-cli] Error: Found extraneous } in Chalk template literal #595

lpellegr opened this issue Jul 19, 2018 · 5 comments · Fixed by #612

Comments

@lpellegr
Copy link

Using polymer-cli in version 1.7.7, the following command:

polymer help lint

produces an error:

error: [cli.main]   cli runtime exception: Error: Found extraneous } in Chalk template literal
error: [cli.main]   Error: Found extraneous } in Chalk template literal
    at tmp.replace (/home/lpellegr/.nvm/versions/node/v10.6.0/lib/node_modules/polymer-cli/node_modules/command-line-usage/node_modules/chalk/templates.js:109:11)
    at String.replace (<anonymous>)
    at module.exports (/home/lpellegr/.nvm/versions/node/v10.6.0/lib/node_modules/polymer-cli/node_modules/command-line-usage/node_modules/chalk/templates.js:99:6)
    at chalkTag (/home/lpellegr/.nvm/versions/node/v10.6.0/lib/node_modules/polymer-cli/node_modules/command-line-usage/node_modules/chalk/index.js:221:9)
    at Chalk.chalk.template (/home/lpellegr/.nvm/versions/node/v10.6.0/lib/node_modules/polymer-cli/node_modules/command-line-usage/node_modules/chalk/index.js:36:20)
    at format (/home/lpellegr/.nvm/versions/node/v10.6.0/lib/node_modules/polymer-cli/node_modules/command-line-usage/lib/chalk-format.js:4:10)
    at chalkFormat (/home/lpellegr/.nvm/versions/node/v10.6.0/lib/node_modules/polymer-cli/node_modules/command-line-usage/lib/chalk-format.js:10:12)
    at ContentSection.arrayify.map.line (/home/lpellegr/.nvm/versions/node/v10.6.0/lib/node_modules/polymer-cli/node_modules/command-line-usage/lib/content-section.js:14:63)
    at Array.map (<anonymous>)
    at new ContentSection (/home/lpellegr/.nvm/versions/node/v10.6.0/lib/node_modules/polymer-cli/node_modules/command-line-usage/lib/content-section.js:14:51)
@michaeljones
Copy link

I see this with polymer-bundler 4.0.2 if I run it without any arguments. I also found it when running with the input file as the last argument and using the --redirect flag. I had to switch using --in-file instead of the positional argument approach to avoid this.

@krumware
Copy link
Contributor

I also have this issue on 1.7.7
Windows 10

@jsilvermist
Copy link
Contributor

Ref #541

@43081j
Copy link
Contributor

43081j commented Jul 31, 2018

#612 should sort this

@barnomics
Copy link

I'm having this same issue when trying to polymer lint a project for the first time :|

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

Successfully merging a pull request may close this issue.

6 participants