You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 17, 2020. It is now read-only.
Livereload server on http://localhost:49154
Serving on http://localhost:4200/
The Broccoli Plugin: [ResolutionMapBuilder] failed with:
Error: The collection 'components' is not configured to contain a collection 'playground'
at /Users/ts02/Code/glimmer/playground/node_modules/@glimmer/resolution-map-builder/lib/get-module-specifier.js:44:17
at Array.forEach (native)
at module.exports.moduleExtension (/Users/ts02/Code/glimmer/playground/node_modules/@glimmer/resolution-map-builder/lib/get-module-specifier.js:39:11)
at /Users/ts02/Code/glimmer/playground/node_modules/@glimmer/resolution-map-builder/index.js:66:21
at Array.forEach (native)
at ResolutionMapBuilder.build (/Users/ts02/Code/glimmer/playground/node_modules/@glimmer/resolution-map-builder/index.js:63:15)
at /Users/ts02/Code/glimmer/playground/node_modules/broccoli-plugin/read_compat.js:93:34
at tryCatch (/Users/ts02/Code/glimmer/playground/node_modules/rsvp/dist/rsvp.js:539:12)
at invokeCallback (/Users/ts02/Code/glimmer/playground/node_modules/rsvp/dist/rsvp.js:554:13)
at publish (/Users/ts02/Code/glimmer/playground/node_modules/rsvp/dist/rsvp.js:522:7)
When I repeat the same steps as above with a dash in the name (e.g. play-ground), ember serve works fine.
The text was updated successfully, but these errors were encountered:
t-sauer
changed the title
Ember serve fails if name doesn't contain a dash
Ember serve fails if the appname doesn't contain a dash
Mar 28, 2017
You'll find that there's a prepended dash for your top-level component in the src/ui/components folder. Remove this leading dash in the folder name, and in the call to app.renderComponent in src/index.js and you should be good to go.
update
It seems that having a dash in component names may be mandatory. That being said, the fix I mentioned above seems to work (perhaps by happenstance).
It could also be fixed on blueprint level. When the app's name doesn't contain a dash, it could add -app suffix to component name and leave the rest as is. It's only a proposition though.
Steps to reproduce:
ember new playground -b @glimmer/blueprint
cd playground
ember serve
The following error shows up:
When I repeat the same steps as above with a dash in the name (e.g.
play-ground
),ember serve
works fine.The text was updated successfully, but these errors were encountered: