Top

Rainbow web sdk Angular error on AWS Amplify

Commentaires

4 commentaires

  • 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
    Actions pour les commentaires Permalien
  • 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
    Actions pour les commentaires Permalien
  • 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
    Actions pour les commentaires Permalien
  • Hiro TAKAHASHI

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

    0
    Actions pour les commentaires Permalien

Vous devez vous connecter pour laisser un commentaire.

Vous n'avez pas trouvé ce que vous cherchez?

  • Contactez-nous

    Vous avez des questions? Laissez-nous un message pour obtenir plus d'informations.

    Contactez-nous
  • Demandez à la Communauté

    Vous avez besoin d'aide? Posez vos questions à la Communauté et obtenez des réponses d'autres utilisateurs Rainbow.

    Poster un message