Top

Rainbow web sdk Angular error on AWS Amplify

Kommentare

4 Kommentare

  • 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
    Aktionen für Kommentare 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
    Aktionen für Kommentare 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
    Aktionen für Kommentare Permalink
  • Hiro TAKAHASHI

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

    0
    Aktionen für Kommentare Permalink

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.

Sie können immer noch nicht finden, was Sie brauchen?

  • Kontaktieren Sie uns

    Haben Sie eine Frage zu Rainbow? Hinterlassen Sie uns eine Nachricht, um weitere Informationen zu erhalten.

    Kontakt
  • Fragen Sie die Gemeinschaft

    Brauchen Sie Hilfe? Stellen Sie Ihre Fragen in der Community, um Antworten von anderen Rainbow-Benutzern zu erhalten.

    Nachricht posten