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

error resolveDependencies: Found duplicate dependency key 'undefined' in index.ts #1082

Closed
leotm opened this issue Oct 19, 2022 · 1 comment
Labels
🚇 Metro: RN JS bundler transpiling Syntax transforming (transcompiling)

Comments

@leotm
Copy link
Owner

leotm commented Oct 19, 2022

Pass: https://github.com/leotm/react-native-template-new-architecture/actions/runs/3280636280/jobs/5401659794

Fail: https://github.com/leotm/react-native-template-new-architecture/actions/runs/3280724795/jobs/5401862760

error resolveDependencies: Found duplicate dependency key 'undefined' in /Users/runner/work/react-native-template-new-architecture/react-native-template-new-architecture/index.ts.
Error: resolveDependencies: Found duplicate dependency key 'undefined' in /Users/runner/work/react-native-template-new-architecture/react-native-template-new-architecture/index.ts
    at resolveDependencies (/Users/runner/work/react-native-template-new-architecture/react-native-template-new-architecture/node_modules/@react-native-community/cli-plugin-metro/node_modules/metro/src/DeltaBundler/graphOperations.js:484:13)
    at processModule (/Users/runner/work/react-native-template-new-architecture/react-native-template-new-architecture/node_modules/@react-native-community/cli-plugin-metro/node_modules/metro/src/DeltaBundler/graphOperations.js:232:31)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:[9](https://github.com/leotm/react-native-template-new-architecture/actions/runs/3280724795/jobs/5401862760#step:8:10)6:5)
    at async traverseDependenciesForSingleFile (/Users/runner/work/react-native-template-new-architecture/react-native-template-new-architecture/node_modules/@react-native-community/cli-plugin-metro/node_modules/metro/src/DeltaBundler/graphOperations.js:221:3)
    at async Promise.all (index 0)
    at async initialTraverseDependencies (/Users/runner/work/react-native-template-new-architecture/react-native-template-new-architecture/node_modules/@react-native-community/cli-plugin-metro/node_modules/metro/src/DeltaBundler/graphOperations.js:204:3)
    at async DeltaCalculator._getChangedDependencies (/Users/runner/work/react-native-template-new-architecture/react-native-template-new-architecture/node_modules/@react-native-community/cli-plugin-metro/node_modules/metro/src/DeltaBundler/DeltaCalculator.js:208:25)
    at async DeltaCalculator.getDelta (/Users/runner/work/react-native-template-new-architecture/react-native-template-new-architecture/node_modules/@react-native-community/cli-plugin-metro/node_modules/metro/src/DeltaBundler/DeltaCalculator.js:90:[16](https://github.com/leotm/react-native-template-new-architecture/actions/runs/3280724795/jobs/5401862760#step:8:17))
    at async DeltaBundler.buildGraph (/Users/runner/work/react-native-template-new-architecture/react-native-template-new-architecture/node_modules/@react-native-community/cli-plugin-metro/node_modules/metro/src/DeltaBundler.js:56:5)
info Run CLI with --verbose flag for more details.
Error: Process completed with exit code 1.

Problem/solutions

More

Bonus: Figure inconsistent/flakey part

NB: Already ahead w parts of RN 0.70.4 (@react-native-community/cli to v9.2.1 merged in master to make available the asset image fix)

@leotm leotm added inconsistent 🚇 Metro: RN JS bundler labels Oct 19, 2022
@leotm
Copy link
Owner Author

leotm commented Oct 19, 2022

It's sneaky transitive 2nd metro-babel-transformer ver intro'd in flipper-server v0.171.1 - revert (3) commits since then let renovate do the rest

@leotm leotm closed this as completed Oct 19, 2022
@leotm leotm added transpiling Syntax transforming (transcompiling) and removed inconsistent labels Oct 20, 2022
@leotm leotm added this to Done in 1337 - Template+ Oct 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🚇 Metro: RN JS bundler transpiling Syntax transforming (transcompiling)
Projects
Development

No branches or pull requests

1 participant