ember-auto-import icon indicating copy to clipboard operation
ember-auto-import copied to clipboard

Build error when using importSync in a classic build with v2

Open grayt0r opened this issue 4 years ago • 1 comments

As part of our app's migration towards embroider we're making use of @embroider/macros's importSync with a classic build.

This was working fine until we upgraded ember-auto-import from v1 to v2, when we started running into the following build error:

Build Error (WebpackBundler)

ember-auto-import is unable to handle ember-auto-import-import-sync-issue/components/nested/

I've created a minimal reproduction here: https://github.com/grayt0r/ember-auto-import-import-sync-issue (with this particular commit containing the component using importSync).

While trying to find any relevant existing issues I did come across this issue in the embroider repo, but as we're still using a classic build I was expecting a fully-qualified path to work.

Am I mistakenly expecting this to work? Or is this a bug?

cc @simonihmig as I spotted you added the importSync support to v2.

grayt0r avatar Jul 06 '21 15:07 grayt0r

3 years later, we're Embroidered, you can close this issue now. Thanks

amk221 avatar Oct 09 '24 12:10 amk221