Top

Rainbow web sdk Angular error on AWS Amplify

Comentarios

4 comentarios

  • Konrad Hyzy

    Hi,

    It looks like some problem I've seen before that was linked to the fact that the code is minified during the build process. Make sure that mangling is disabled in your webpack settings.

    0
    Acciones de comentarios Permalink
  • Hiro TAKAHASHI

    Hello, thank you for your suggestion, however I'm still getting the same errors.
    Inside the webpack.config.js under node_modules/react-scripts, I've changed the values of "minimize" and "mangle" to false.  Since I'm a new for webapp development I may overlook something, any suggestions are appreciated.

    Please note that the issue won't happen while running on my local server, I see the problem once I host the app to AWS Amplify.

    --
    Uncaught Error: [$injector:unpr] http://errors.angularjs.org/1.7.5/$injector/unpr?p0=tProvider%20%3C-%20t%20%3C-%20filesStorageService%20%3C-%20rainbowSDK
    at angular.min.js:7
    at angular.min.js:46
    at Object.d [as get] (angular.min.js:43)
    at angular.min.js:46
    at d (angular.min.js:43)
    at e (angular.min.js:44)
    at Object.instantiate (angular.min.js:45)
    at Object.<anonymous> (angular.min.js:45)
    at Object.invoke (angular.min.js:45)
    at Object.$get (angular.min.js:42)

    0
    Acciones de comentarios Permalink
  • Konrad Hyzy

    Is there any way you can make check if after running npm install on AWS you still replace the node_modules/react-scripts file? 
    It looks to me that only npm install is run on the AWS server and no further changes are made to the file (so it stays in its default state)

     

    0
    Acciones de comentarios Permalink
  • Hiro TAKAHASHI

    Thanks, I thought the same thing as nothing changed. Let me dig into Amplify a little more deeply.

    0
    Acciones de comentarios Permalink

Iniciar sesión para dejar un comentario.

  • Pregunte a la Comunidad

    ¿Necesitas ayuda? Haz tus preguntas en la Comunidad para obtener respuestas de otros usuarios de Rainbow.

    Enviar un mensaje.