-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Ignite-cli Project Installation Error: CommandError: Cannot find module 'ajv/dist/compile/codegen' #2840
Comments
I was able to reproduce the same issue from Ignite CLI version
Although it looks like maybe this is a peer dependency resolution issue. It looks like you're using Node, not Bun, but that may actually be the culprit: expo/expo#29150 |
As a quick workaround, if you install ajv as a devDependency in your project, you can force things to work:
That worked for me on my reproducer, but it's not really addressing the root issue. |
Thanks for the response.
Keep in mind, I only ran one automated command that is supposed to build the boilerplate project So after that one command fails, and I patch the interrupted installation with your suggestion Do I just
Is it supposed to pick up where it left off, with my manually patched package.json? Please advise. |
Yea, I followed my own suggestion.
So this patch / fix somehow needs to be applied to the package.json, BEFORE I can run |
Hey @spartanlync - I think I've figured out the issue(s). I was able to reproduce the errors you hit, and resolve them locally. I think there are actually three intersecting bugs. Two of them are from Ignite, and one requires a small adjustment on your side.
That said, here are a series of steps that I believe will fix your issues. I was able to get an Ignite project with your chosen settings running on my own local environment with these steps. We will still want to resolve the peer dependencies and template issues on our end, but hopefully this unblocks you, and anyone else trying to use the experimental support for Expo Router. Step by stepFirst, remove your existing project with Next, run
Notice the updated bundle identifier: I think the root of your original issue is that there's some kind of peer dependency problem with ESLint and Expo Router. So go into the directory with Up next, let's force your project to have the latest version of Finally, we have some issues in our experimental templates. We'll have to update those, but you can fix it in your own project locally. In
Then you should be able to get the app running, assuming your React Native development environment is correctly set up: https://reactnative.dev/docs/environment-setup. You can run Let me know if you experience any additional issues. Sorry for the inconvenience. Experimental features often have some sharp edges. We will smooth 'em down! |
I think this may be related to what we had to do in #2818, but from what I can tell that code hasn't changed or regressed. I'm going to double check to make sure |
Ok, so we're definitely calling I think we can just add |
Hey @coolsoftwaretyler, following your suggestions I was successful in getting the demo app running I don't feel comfortable trusting this project until your suggested patches to
I will explorer the framework to understand how it works, but will hold off on using it for my next project until it's Expo integration is more stable Thanks for all your help, and glad i could contribute to a better product |
Thanks @spartanlync. Sorry it wasn't a good fit and hopefully you'll consider us again soon. |
Closed by #2842 |
@frankcalise - one more PR before we can close this, I think - gotta fix a template bug:
I'll send a PR sometime this week or the weekend for that. Edit: or I can open up a new issue for that specifically if you prefer. Either way, will send a PR to patch it up. |
Ignore me, that must have been a slow TypeScript LSP on my end. The paths are working. Re-closing! Sorry for the noise. |
Hello. So I have abandoned the test project. |
Hey @spartanlync - we have a GitHub releases page that will have information about new releases. You can subscribe to it by "watching" the repository with custom settings. |
OK. So I configure watching for #2842 (ajv fix), and future PR's for the template fixes? |
I think the template fixes were unnecessary, and my local setup was giving me a false negative. I have been working off the latest branch of Ignite tonight and unable to reproduce. I think if you configure alerts for the next release, that should be sufficient. |
Got it. Thanks |
🎉 This issue has been resolved in version 10.1.3 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Describe the bug
Hello, Was interested in exploring this framework by creating a project and trying it out for myself.
Unfortunately, creating my demo project failed with the following error and I could not find any reference to this issue being raised on GitHub.
CommandError: Cannot find module 'ajv/dist/compile/codegen'
Please see my screenshot below of trying to build my ignite project using the latest code.
Note: I do not have ignite-cli installed in my computer
Doing some digging, i found two articles on a solution.
But these fixes requires a package.json dependancy fix from ^6 to ^8, which is outside my scope for ignite.
So before I abandon this exploration of ignite, I thought i would post what i experienced and give the community a chance to resolve.
Any suggestions on next steps?
Text of installation and error below
Screenshot of installation and error below
Ignite version
10.0.4
Additional info
The text was updated successfully, but these errors were encountered: