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

Warning: Export "mixins" ... will end up in different chunks #1

Open
IlyaSemenov opened this issue Jul 4, 2023 · 0 comments
Open

Comments

@IlyaSemenov
Copy link
Owner

nuxt build emits warnings:

Export "mixins" of module "../../node_modules/.pnpm/[email protected][email protected]/node_modules/vue-facing-decorator/dist/esm/mixins.js" was reexported through module "../../node_modules/.pnpm/[email protected][email protected]/node_modules/vue-facing-decorator/dist/esm/index.js" 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.
#20 52.73 Either change the import in "components/filters/DatesFilterFields.vue?vue&type=script&lang.ts" to point directly to the exporting module or reconfigure "output.manualChunks" to ensure these modules end up in the same chunk.

The code is as simple as:

import { Component, mixins, Prop } from 'nuxt-property-decorator'

class DatesFilterFields extends mixins(FilterComponentMixin) {}

with the mixin defined like:

import { ComponentBase, Inject, Vue } from 'nuxt-property-decorator'

@ComponentBase
class FilterComponentMixin extends Vue {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant