Skip to content

Vite/Rollup circular dependency build warning #592

Description

@jaskp

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';

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions