Troubleshooting
#
InitializationIf you bump into an error in the initialization, you may have forgotten that the R2U.init
function is asynchronous. The solution is to await
the method before calling the others. Here are two implementation possibilities:
#
SDK versionSometimes you might end up in some trouble by getting an older version of the SDK. To fix this, either:
- Double check you are using the latest version latest version of the SDK
- Add the package with
yarn
#
R2U.viewer.create / R2U.ar.attachRemember that these functions have specific parameters.
The correct implementation is to simply explicit the parameters:
#
Uncaught TypeError: Cannot read property 'assets' of undefinedThis error means that the SKU that you are calling isn't in our database. If you think the SKU you are calling is correct, some common causes are listed here:
- the SKU wasn't created yet on our database
- the SKU you are calling doesn't match the one we have
Please get in touch (contact@r2u.io) to clear this issue.
#
3D Viewer and AR Button don't appearIf you didn't get any errors cited here, you may not have approved the model yet on our console.