My learning diary

First Lighthouse Report for Jiayee.net

I ran my first Lighthouse report on this site. There’s a bunch of improvements to make. As of now, I managed to resolve some of them. I put up the links to the before and after Lighthouse reports at the end of this post. Please feel free to take a look at them. A summary of the improvements I made: Include lang attribute to the html element i.e. <html lang="en">. Added rel="noopener" to external links.

Continue reading "First Lighthouse Report for Jiayee.net"

Debugging Angular

Something could’ve happened in the past 2 weeks while I focused on fixing my unit tests. It had been some time since I last did a local deployment. To my surprise, my local deployments in the recent days rendered a blank page with the following error in the JavaScript console: Uncaught Error: [$injector:modulerr] Failed to instantiate module FormSG due to: Error: [$injector:modulerr] Failed to instantiate module forms due to: Error: [ng:areq] Argument 'directiveFactory' is required My Google-fu was lacking.

Continue reading "Debugging Angular"