ember-cli-clock icon indicating copy to clipboard operation
ember-cli-clock copied to clipboard

Doesn't scaffold property in a pod structure

Open adambullmer opened this issue 6 years ago • 1 comments

When a project is configured to use a pod structure, this addon doesn't scaffold into the appropriate location.

expected (example assumes config/environment.js to have no podModulePrefix set)

ember g clock my-clock --pod

installing service
  create app/my-clock/service.js
installing service-test
  create tests/unit/my-clock/service-test.js

actual

ember g clock my-clock --pod

installing service
  create app/services/my-clock.js

Running the app will give an import error: Uncaught Error: Cannot find module 'my-project/services/my-clock' and is resolved upon moving the file to the appropriate pod structure location.

adambullmer avatar Sep 04 '18 01:09 adambullmer

Actually, I think the import error is a red herring, possibly due to out of date dependencies of this library

adambullmer avatar Sep 04 '18 01:09 adambullmer