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

yarn: TypeError: true is not iterable! using a dynamic plugin #1244

Open
cmoulliard opened this issue May 8, 2024 · 0 comments
Open

yarn: TypeError: true is not iterable! using a dynamic plugin #1244

cmoulliard opened this issue May 8, 2024 · 0 comments
Labels
jira Sync this issue with Jira status/triage

Comments

@cmoulliard
Copy link

Issue or new feature request or ...

To test the backward compatibility of the dynamic module with our backstage project, I registered one of our "dynamic" plugin like this:

"@qshift/plugin-quarkus-backend": "file:/Users/cmoullia/temp/dynamic-plugins-root/qshift-plugin-quarkus-backend-dynamic-0.1.28.tgz",

When I execute yarn install on our backstage project: https://github.com/q-shift/backstage-playground,
I got this error.

warning "workspace-aggregator-232ebc6a-91c5-4140-b754-43cf68d28956 > backend > @qshift/plugin-quarkus-backend@0.1.28" has unmet peer dependency "@backstage/backend-dynamic-feature-service@^0.2.7".
warning "workspace-aggregator-232ebc6a-91c5-4140-b754-43cf68d28956 > backend > @qshift/plugin-quarkus-backend@0.1.28" has unmet peer dependency "@backstage/plugin-scaffolder-node@^0.3.3".
error TypeError: true is not iterable!
    at module.exports.module.exports.__webpack_require__.getIterator (/Users/cmoullia/.cache/node/corepack/yarn/1.22.21/lib/cli.js:101500:42)
    at PackageLinker.<anonymous> (/Users/cmoullia/.cache/node/corepack/yarn/1.22.21/lib/cli.js:48417:192)
    at Generator.next (<anonymous>)
    at step (/Users/cmoullia/.cache/node/corepack/yarn/1.22.21/lib/cli.js:310:30)
    at /Users/cmoullia/.cache/node/corepack/yarn/1.22.21/lib/cli.js:328:14
    at new Promise (<anonymous>)
    at new F (/Users/cmoullia/.cache/node/corepack/yarn/1.22.21/lib/cli.js:5540:28)
    at PackageLinker.<anonymous> (/Users/cmoullia/.cache/node/corepack/yarn/1.22.21/lib/cli.js:307:12)
    at PackageLinker.linkBinDependencies (/Users/cmoullia/.cache/node/corepack/yarn/1.22.21/lib/cli.js:48464:20)
    at /Users/cmoullia/.cache/node/corepack/yarn/1.22.21/lib/cli.js:49030:28

The problem is described here: yarnpkg/yarn#7334 (comment) and related to the fact that the package.json file of dist-dynamic includes the property bundleDependencies: true. If we remove it then the problem is gone

Can janus-idp cli disable it when the dynamic package is generated or do we need to embed the nodes_modules ?

@github-actions github-actions bot added the jira Sync this issue with Jira label May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
jira Sync this issue with Jira status/triage
Projects
None yet
Development

No branches or pull requests

1 participant