generator-polymer-init-custom-build icon indicating copy to clipboard operation
generator-polymer-init-custom-build copied to clipboard

README instructions don't work

Open davidmaxwaterman opened this issue 7 years ago • 4 comments

08:36:33 ~$ mkdir my-app
08:36:38 ~$ cd my-app
08:36:38 ~/my-app$ polymer init polymer-starter-kit-custom-build
info:    Running template polymer-init-polymer-starter-kit-custom-build:app...
error:   Template polymer-init-polymer-starter-kit-custom-build:app not found
error:   cli runtime exception: Error: Template polymer-init-polymer-starter-kit-custom-build:app not found
error:   Error: Template polymer-init-polymer-starter-kit-custom-build:app not found
    at Object.<anonymous> (/home/davidmaxwaterman/.nvm/versions/node/v6.11.4/lib/node_modules/polymer-cli/lib/init/init.js:220:19)
    at next (native)
    at fulfilled (/home/davidmaxwaterman/.nvm/versions/node/v6.11.4/lib/node_modules/polymer-cli/lib/init/init.js:17:58)
    at process._tickCallback (internal/process/next_tick.js:109:7)
    at Module.runMain (module.js:606:11)
    at run (bootstrap_node.js:383:7)
    at startup (bootstrap_node.js:149:9)
    at bootstrap_node.js:496:3
08:36:42 ~/my-app$ 

According to the polymer-cli help, it should work if you use the --name parameter, but that also doesn't work:

08:37:54 ~/my-app$ polymer init --name polymer-starter-kit-custom-build
info:    Running template polymer-init-polymer-starter-kit-custom-build:app...
error:   Template polymer-init-polymer-starter-kit-custom-build:app not found
error:   cli runtime exception: Error: Template polymer-init-polymer-starter-kit-custom-build:app not found
error:   Error: Template polymer-init-polymer-starter-kit-custom-build:app not found
    at Object.<anonymous> (/home/davidmaxwaterman/.nvm/versions/node/v6.11.4/lib/node_modules/polymer-cli/lib/init/init.js:220:19)
    at next (native)
    at fulfilled (/home/davidmaxwaterman/.nvm/versions/node/v6.11.4/lib/node_modules/polymer-cli/lib/init/init.js:17:58)
    at process._tickCallback (internal/process/next_tick.js:109:7)
    at Module.runMain (module.js:606:11)
    at run (bootstrap_node.js:383:7)
    at startup (bootstrap_node.js:149:9)
    at bootstrap_node.js:496:3

It does seem to work if I just run polymer init and select it from the menu though.

08:38:05 ~/my-app$ polymer --version 1.5.7

davidmaxwaterman avatar Oct 17 '17 12:10 davidmaxwaterman

It's a bit strange.

  • It doesn't work: polymer init polymer-starter-kit-custom-build
  • It works: polymer init & select polymer-starter-kit-custom-build
  • It works: polymer init custom-build

screen shot 2017-10-19 at 11 15 19

abdonrd avatar Oct 19 '17 09:10 abdonrd

@FredKSchott It seems somewhat related to the CLI. You know?

abdonrd avatar Oct 19 '17 09:10 abdonrd

@abdonrd it looks like just a labelling mismatch. The CLI looks for generator-polymer-init- when you pass an argument to polymer init. When it generates the list it is pulling the title from the generator's package.json https://github.com/PolymerElements/generator-polymer-init-custom-build/blob/74f92ffed07d3d4c582805918a55b74e6d21dab2/generators/app/package.json#L2

stramel avatar Dec 12 '17 20:12 stramel

README instructions don't work

ghost avatar Apr 04 '18 03:04 ghost