frontends icon indicating copy to clipboard operation
frontends copied to clipboard

[BUG] Pre-transform error: [unimport] failed to find "createShopwareContext" imported from "#imports"

Open mdanilowicz opened this issue 8 months ago • 0 comments

Current Behavior

 ERROR  Pre-transform error: [unimport] failed to find "createShopwareContext" imported from "#imports"      7:43:53 PM
  Plugin: nuxt:imports-transform

The problem appears when nuxt-module is added to the project but "@shopware/composables/nuxt-layer" is not extended in project.

It is because the Nuxt layer system merges the TS config file from the composables and project adding to the #imoprts alias scope of the composables

Expected Behavior

No response

Steps To Reproduce

No response

Anything else?

No response

mdanilowicz avatar Apr 13 '25 18:04 mdanilowicz