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

Vite/Rollup circular dependency build warning #592

Open
jaskp opened this issue Dec 6, 2024 · 0 comments
Open

Vite/Rollup circular dependency build warning #592

jaskp opened this issue Dec 6, 2024 · 0 comments

Comments

@jaskp
Copy link

jaskp commented Dec 6, 2024

Building an app with this SDK using Vite produces this Rollup warning:

Export "EXTERNAL" of module "../node_modules/gridplus-sdk/dist/util.js" was reexported through 
module "../node_modules/gridplus-sdk/dist/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.
Either change the import in "../node_modules/gridplus-sdk/dist/api/setup.js" to point directly to the exporting module
or reconfigure "output.manualChunks" to ensure these modules end up in the same chunk.

It's probably this line in setup.js

import { Utils } from '..';

which should be

import { EXTERNAL as Utils } from '../util';
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