Angular 9.1 - Javascript heap out of memory - out-of-memory

Below screen shot shows CPU usage
Below is package.json file
Targeted only ES2015 in tsconfig.json.
Tried doing ng build --prod-- source-map=false but did not worked

Related

How to make the build process not compile all .scss files into a main.css

All my various components have some .scss files which get eventually merged into a single main.css This make it hard to debug as the Chrome Developer Console has no back-references to the source scss like for example, component1.scss
For debugging-run purposes is it possible to keep the various .scss files separate unmodified?
Consider the following snapshot from the Chrome Dev. Console, I can guess where a style like ChannelEntryComp is coming from, but I am clueless about a style like "label", "input",
Perhaps, they may have been redefined in different .scss in my project, intentionally or not, and thus side-effecting the net result.
Here is my current build command line for the browser build, are there parameters I could specify here or elsewhere?:
ionic serve --no-open --allow-file-access-from-files --target cordova
Just when I think I understand CSS, it surprises me a week later with more broken renderings.
If there CSS tools or extension you would like me to consider, please share.
Consider me a novice.
Still on ionic 3 :(
Thank you.
i
TypeScript version
Version 4.3.5
Ionic:
Ionic CLI : 6.13.1 (C:\Users\AXM\AppData\Roaming\npm\node_modules\#ionic\cli)
Ionic Framework : ionic-angular 3.9.2
#ionic/app-scripts : 3.2.4
Cordova:
Cordova CLI : 11.0.0
Cordova Platforms : android 10.1.2, browser 5.0.3
Cordova Plugins : cordova-plugin-ionic-webview 4.1.3, (and 15 other plugins)
Utility:
cordova-res : 0.15.3
native-run : not installed
System:
Android SDK Tools : 26.1.1 (C:/Users/AXM/AppData/Local/Android/Sdk)
NodeJS : v12.9.1 (C:\Program Files\nodejs\node.exe)
npm : 6.9.0
OS : Windows 10
my launch.json profile has "sourceMaps": true
While testing this in your local environment you would be able to see the references you need (line number and file names) if you leave the source map files in.
https://sass-lang.com/documentation/cli/dart-sass#source-maps
Please note: This is dependent on the rest of your build process. I wouldn't recommend running a minifier or purge tool during development (unless needed) as this can result in issues like yours

Deployment of QML app with SoundEffect not working

I've to say... why is so hard to deploy Qt5 in OS X?
After a lot of pain... and discovering this script: https://gist.github.com/lasconic/5965542 and this custom macdeployqt: https://github.com/MaximAlien/macdeployqt I was able to deploy in OSX... but audio is not working.
I've a simple SoundEffect element:
SoundEffect {
id: ring
loops: 1
source: "alarm03.wav"
}
it works fine running in debug/release mode from Qt Creator... but as soon as I run macdeployqt I start to get this error: using null output device, none available
and no sound is played.
Then I found that it could be the audio plugin missing... so I copied the plugins/audio folder to my app package.
Then I start to get an error in startup and the sound starts to play but it runs for about half second... and stops with another error.
The error in startup: http://pastebin.com/TFBgswfb
The error when try to play the sound: http://pastebin.com/KjQ3JCXJ
The error in startup I found that was because it was loading libraries from the app package and from my Qt installation (why??) so I renamed my installation folder to test... the error in startup disappeared... but the first error playing the sound returned.
So I'm out of ideas about what's happening... the only thing I know is that Qt needs a easier deployment system.
Versions: Qt 5.2 - Clang64 - Qt Creator 3.1
PS: My .pro file contains:
QT += sql multimedia

symfony2 assetic dump stopped watch

I am doing a project in Symfony2 and I have a problem with assetics. I use to compress assetics yuicompressor but the command:
app/console assetic:dump --force --watch
does not work i get always this error after some time:
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 32 bytes) in /Applications/MAMP/htdocs/optinet/vendor/twig/lib/Twig/Node.php on line 225
I've tried all the ways but not working always get the error.
thanks.
In order to work around assetic in general with assetic:dump --watch like commands dig into Guard or Grunt ! I moved there because of similar performance problems and lacking configuration options in assetic.
The watch command has the downside of only being able to run with debug option.
Grunt/Guard aka. task watchers are able to automatically re-dump assets, run unit-tests and livereload your browser on changes to controllers or assets.
watch a quick Guard introduction on nettuts to get an idea about how this works
They even provide nice integration for GROWL (OSX / Windows) and libnotify ( *nix ) notifications for completed/failed tasks.
Use one of these in combination with CoffeeScript,SASS,LESS, ... source-maps for maximum frontend productivy.
If you use Chrome and Tincr with assets:install web --symlink you can even edit/debug your css and js directly in DevTools and save them back into your current bundle structure without leaving the browser.
Firefox has recently added source-map support in Aurora.
Assetic currently lacks the source-map options needed for various pre-processors but i'm working on that already ;-)

Simpless (popup window after automatical compile LESS to CSS)

i'm using PHPStorm 6 and Simpless for compile LESS to CSS.
I have set LESS as File watcher in IDE. Everything is fine and compiling works.
The problem is when i make some changes to the .less file, IDE runs Simpless program and the window of the Simpless program popup every time over all my running programs. It's very annoying.
So, is there some chance to disable Simpless popup window?
Thanks.
SimpLESS is a GUI application that is not designed to be used as a command line compiler. File Watcher expects a command line interface compiler.
On Windows you can use LESS compiler provided by the Node.JS less module.
Install Node.JS if you don't have it already
npm install -g less
Add File Watcher in PhpStorm, the path to compiler should look like c:\Users\<USER>\AppData\Roaming\npm\lessc.cmd or c:\Program Files (x86)\nodejs\lessc.cmd. If you remove the existing LESS file watcher and it again, PhpStorm should find the compiler path automatically.

Titanium Developer

I am trying to use the titanium developer v.1.2.1 but i have some difficulty the simulators are not lunching!
for the iPhone simulator nothing happens it just goes like this and the simulator is not shown
[INFO] Compiling JavaScript...one moment
[INFO] No JavaScript errors detected.
[INFO] One moment, building ...
[INFO] Titanium SDK version: 1.4.1.1
[INFO] iPhone Device family: iphone
[INFO] iPhone SDK version: 3.1
And for the Android ti says
[INFO] Launching Android emulator...one moment
[INFO] Building HelloWorld for Android ... one moment
[INFO] Waiting for the Android Emulator to become available
[INFO] Copying project resources..
[INFO] Tiapp.xml unchanged, skipping class generation
[INFO] Manifest unchanged, skipping Java build
[ERROR] /Users/vladimirrobevski/Desktop/android-sdk-mac_x86/tools/apkbuilder
[INFO] Installing application on device
[ERROR] Failed installing com.devoncompanyinc.helloworld: pkg: /data/local/tmp/app.apk
Is someone having the same problem?How to fix this
I'm unclear if you are trying to run the app in the simulator or the phone. I'll assume for iphone, you are talking simulator.
I have had this same problem before with iphone (but not android) along with other build issues like this. Here's what I did to get it to work:
Delete the contents of the iphone build folder (as described in other answer).
Assuming you are on a mac, open project in XCode and build from there.
Run simulator from xcode...you can connect your phone and run on phone from there,
too.
If the simulator doesn't work from here, you'll need to update your xcode tools. If it works, go to next step.
Launch Titanium developer and run the
project again. It should launch in the simulator.
what I usually do is delete the all of the files in the build/iphone directory... just the files NOT the directories and that should force a complete rebuild of the project

Resources