-
-
Notifications
You must be signed in to change notification settings - Fork 880
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
Unable to resolve module url from node_modules/ajv/lib/compile/resolve.js #435
Comments
It says something about "url" module not found. It is a core node.js module that would also be available if you were to use browserify. It also mentions facebook/react-native#4968 |
As a workaround I can suggest using supplied bundle - it exports global Ajv. |
Thanks! |
@claudiorodriguez do you know how to solve it? |
I have the same issue. Unable to resolve module 'url'. |
@nenti @pavlelekic I think including url module from npm as your app dependency can help. Please let me know if it does or doesn't. |
@epoberezkin I can confirm that adding |
@superandrew213 thank you |
How do you add url as dependency of your React Native project? |
@jsaucedo |
yarn add url |
I tried using Ajv in a React Native app, however I wasn't even able to include the module (see the screenshot). I tried the stable version, as well as 5.0.3-beta, same thing happens. I used the code example in the docs:
But like the error says, I wasn't able to validate anything, it was failing even before with the require('ajv') statement.
The text was updated successfully, but these errors were encountered: