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. There are two possible solutions when calling the script:
- Manually get the latest version
- Don't put the version (this way you automatically get the latest version)
- 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 enter in contact (contato@r2u.io) to have these aligned.
#
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.