Today, I had a very unusual problem. An Ionic v3 app that we are developing worked fine in development, but when compiled in production mode (ionic build --prod
) would fail to launch. When connected to a web inspector, the error thrown was
Error: Cannot use e "__Schema" from another module or realm.
Ensure that there is only one instance of "graphql" in the node_modules
directory. If different versions of "graphql" are the dependencies of other
relied on modules, use "resolutions" to ensure only one version is installed.