Closed BjoernRave closed 1 year ago
Same for android using expo go
Android Bundling failed 11503ms
error: Error: While resolving module `next/router`, the Haste package `next` was found. However the module `router` could not be found within the package. Indeed, none of these files exist:
* `X:\Projects\Javascript\sigmalife\apps\next\router(.native|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx|.android.js|.native.js|.js|.android.jsx|.native.jsx|.jsx|.android.json|.native.json|.json)`
* `X:\Projects\Javascript\sigmalife\apps\next\router\index(.native|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx|.android.js|.native.js|.js|.android.jsx|.native.jsx|.jsx|.android.json|.native.json|.json)`
at resolveHasteName (X:\Projects\Javascript\sigmalife\node_modules\metro-resolver\src\resolve.js:198:9)
at Object.resolve (X:\Projects\Javascript\sigmalife\node_modules\metro-resolver\src\resolve.js:68:20)
at ModuleResolver.resolveDependency (X:\Projects\Javascript\sigmalife\node_modules\metro\src\node-haste\DependencyGraph\ModuleResolution.js:126:31)
at DependencyGraph.resolveDependency (X:\Projects\Javascript\sigmalife\node_modules\metro\src\node-haste\DependencyGraph.js:264:43)
at Object.resolve (X:\Projects\Javascript\sigmalife\node_modules\metro\src\lib\transformHelpers.js:170:21)
at resolveDependencies (X:\Projects\Javascript\sigmalife\node_modules\metro\src\DeltaBundler\graphOperations.js:466:33)
at processModule (X:\Projects\Javascript\sigmalife\node_modules\metro\src\DeltaBundler\graphOperations.js:232:31)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async addDependency (X:\Projects\Javascript\sigmalife\node_modules\metro\src\DeltaBundler\graphOperations.js:361:18)
at async Promise.all (index 2)
oh, might be a new bug introduced, looking into this
Fixed in the newest commit!
A couple days ago I changed our next app name from next-app to next so that the folder name and the package name is consistent. For the sake of deploying to Vercel.
Which created a conflict of namespace between "next" the node_modules framework and "next" our web app.
Should've saw that coming! Let me know if it works for you guys now.
just tried it and it works :) Thanks for the quick fix
When trying to run
yarn native
and then pressingi
for iOS, I get the following error: