Open rmgpinto opened 7 years ago
I have the same issue running ionic build browser after installing ionic, cordova package in docker image of node:boron-alpine.
I found the source of the problem with building / serving Ionic Apps on Alpine Linux. The problem is in the recursive usage of the function str-replace
in ionic-angular/themes/ionic.functions.scss
. On Alpine, it generates segmentation fault after reaching a recursion depth of about 10 (at least on my systems).
There is an (closed) issue at libsass https://github.com/sass/libsass/issues/1823 that describes this phenomenon. There are also two alternative implementations of str-replace
that seem to work.
After patching the file ionic.functions.scss
, I can build Ionic apps on Alpine Linux without any problems.
Since the current implementation of str-replace
in Ionic would lead to similar problem on other platforms (im there are enough spaces in the inline svg), I suggest that the problem should be fixed within the Ionic Framework.
I'm also running into this problem when trying to test my app inside an Alpine Linux container. Any status update on this?
Hi.. any update on this??.. I am facing same issue. Please find below configuration details.
Os : Redhat Linux Ionic : 3.18.0 ionic-app-scripts: 3.0.0
Short description of the problem:
I get a segmentation fault on
ionic serve
.What behavior are you expecting?
ionic serve to finish.
Steps to reproduce:
npm-debug.log
Which @ionic/app-scripts version are you using? 1.3.6