Skip to content

Circular dependency any.js -> pseudo.js -> any.js using rollup #9

Closed
@peterbabic

Description

@peterbabic

Circular dependency any.js -> pseudo.js -> any.js using rollup

The rollup bundler is printing warnings about the detected circular dependency:

Circular dependency: node_modules/unist-util-select/lib/any.js -> node_modules/unist-util-select/lib/pseudo.js -> node_modules/unist-util-select/lib/any.js
Circular dependency: node_modules/unist-util-select/lib/any.js -> node_modules/unist-util-select/lib/pseudo.js -> /home/delmadord/work/sapper-blog/node_modules/unist-util-select/lib/any.js?commonjs-proxy -> node_modules/unist-util-select/lib/any.js

I will provide MVE to reproduce as soon as confirmed it is necessary. I may be mistaken of course, but from what I believe right now, any code analysis tool that would check for circular dependency issues should be able to spot this, not just rollup.

Lines that I believe lead to this behavior:

var pseudo = require('./pseudo')

var anything = require('./any')

Thank you for your work

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions