ionic-team / ionic-cli

The Ionic command-line interface
MIT License
2k stars 653 forks source link

Ionic 4 - ionic monitoring syncmaps not working with Ionic 4 #3727

Closed fedme closed 2 years ago

fedme commented 6 years ago

Description: The ionic monitoring syncmaps command does not work inside a Ionic 4 project because the .sourcemaps directory does not exist. The error returned is the following one:

[ERROR] Cannot find directory: .\.sourcemaps.

Make sure you have the latest @ionic/app-scripts. Then, re-run this command.

Manyally copying Angular's sourcemap files (from inside www) inside a newly created .sourcemaps folder also does not work: it seems to be able to upload some files but then it returns the following error:

HTTP Error 400: POST https://pro-app-storage.s3.amazonaws.com/

<no buffered body>

Steps to Reproduce:

  1. Create a new Ionic 4 project
  2. Linck the project to Ionic Pro
  3. Build it
  4. Sync the sourcemaps to Ionic Pro Monitoring by running ionic monitoring syncmaps

Output:

[ERROR] Cannot find directory: .\.sourcemaps.

Make sure you have the latest @ionic/app-scripts. Then, re-run this command.

My ionic info:

Ionic:

   ionic (Ionic CLI)             : 4.3.0 (C:\Users\fedem\AppData\Roaming\npm\node_modules\ionic)
   Ionic Framework               : @ionic/angular 4.0.0-beta.15-0
   @angular-devkit/build-angular : 0.7.5
   @angular-devkit/schematics    : 0.7.5
   @angular/cli                  : 6.1.5
   @ionic/angular-toolkit        : 1.0.0

Cordova:

   cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1)
   Cordova Platforms     : none
   Cordova Plugins       : no whitelisted plugins (0 plugins total)

System:

   Android SDK Tools : 26.1.1 (C:\Users\fedem\AppData\Local\Android\Sdk)
   NodeJS            : v8.11.1 (C:\Program Files\nodejs\node.exe)
   npm               : 5.6.0
   OS                : Windows 10

Other Information:

MartineFrancken commented 5 years ago

I'm running into the same problem when executing the command ionic monitoring syncmaps. Where you able to find a workaround?

jesperbjerke commented 5 years ago

It says here that monitoring is not supported for v4, I hope they are planning to add support for it? Also saw a discussion here about it dissapearing from the dashboard even.

MartineFrancken commented 5 years ago

@jesperbjerke , thank you for your response, that does explain why it is not working in the application. I noticed monitoring this week for the first time in our AppFlow environment since the UI update

scottieslg commented 5 years ago

What the????

I would have never upgraded to V4 if I'd known monitoring isn't supported. This is ridiculous!!

ffMathy commented 5 years ago

Same here.

KasperAndersson commented 5 years ago

@IonicProSupport Any news, on monitoring in v4 apps?

ffMathy commented 5 years ago

I ended up rewriting my app in React Native. Will come back once Capacitor comes out (maybe). Was able to rewrite 6 months of work in Ionic, in just 5 days in React Native.

The live-reload and debugger experience is also much better.

I find it disappointing that Ionic isn't responding, and isn't doing anything about critical issues. Version 4 shouldn't have been out if most of the critical infrastructure is not supported there!