Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Export "request" was reexported while both modules are dependencies of each other #138

Closed
dm-heinze opened this issue Jun 19, 2023 · 0 comments · Fixed by #139 or #146
Closed
Labels
bug Something isn't working rc2.1 Integrated into rc2.1 branch

Comments

@dm-heinze
Copy link
Collaborator

Versions
hubble: 2.0.0
node: 16.14.1

Steps to Reproduce

  1. Import "request" from '@hubblecommerce/hubble/platforms/shopware/api-client' eg in an composable
  2. npm run build

Expected behavior
Production build runs without errors

Current behavior
Console logs following error:

Export "request" of module "src/platforms/shopware/api-client/generated/core/request.ts" was reexported through module "src/platforms/shopware/api-client/generated/index.ts" while both modules are dependencies of each other and will end up in different chunks by current Rollup settings. This scenario is not well supported at the moment as it will produce a circular dependency between chunks and will likely lead to broken execution order.
Either change the import in "playground/.hubble/composables/usePage.ts" to point directly to the exporting module or reconfigure "output.manualChunks" to ensure these modules end up in the same chunk.

@dm-heinze dm-heinze added the bug Something isn't working label Jun 19, 2023
@dm-heinze dm-heinze linked a pull request Jun 19, 2023 that will close this issue
@dm-heinze dm-heinze added the rc2.1 Integrated into rc2.1 branch label Jun 19, 2023
@dm-heinze dm-heinze linked a pull request Jun 23, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working rc2.1 Integrated into rc2.1 branch
Projects
None yet
1 participant