Skip to content

Instantly share code, notes, and snippets.

View 1nv1n's full-sized avatar
👍

Neil Pathare 1nv1n

👍
  • NYC
  • 01:35 (UTC -04:00)
View GitHub Profile
### Keybase proof
I hereby claim:
* I am 1nv1n on github.
* I am 1nv1n (https://keybase.io/1nv1n) on keybase.
* I have a public key ASA5ftnaxhLj6doTnpRC6q4iDkGj3zJC4aPlH1RUK5FA6Ao
To claim this, I am signing this object:
angular.json
...
"assets": [
"src/assets",
...
{ "glob": "**/*", "input": "../node_modules/ngx-monaco-editor/assets/monaco", "output": "./assets/monaco/" }
],
...
app.module.ts
@1nv1n
1nv1n / gist:63ec946ee7b125799350b506c8281012
Created September 20, 2018 17:13
Angular6MonacoAngularJSON
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "projects",
"projects": {
"angular-material-electron": {
"root": "",
"sourceRoot": "src",
"projectType": "application",
"architect": {
@1nv1n
1nv1n / gist:34071e4c4fa9e37ceedd19872e939889
Created September 20, 2018 17:12
Angular6MonacoError
ERROR Error: Uncaught (in promise): TypeError: window.require.config is not a function
TypeError: window.require.config is not a function
at onGotAmdLoader (base-editor.js:50)
at base-editor.js:68
at new ZoneAwarePromise (zone-mix.js:891)
at EditorComponent.push../node_modules/ngx-monaco-editor/base-editor.js.BaseEditor.ngAfterViewInit (base-editor.js:42)
at callProviderLifecycles (core.js:12002)
at callElementProvidersLifecycles (core.js:11967)
at callLifecycleHooksChildrenFirst (core.js:11949)
at checkAndUpdateView (core.js:13166)
@1nv1n
1nv1n / package.json
Created September 20, 2018 17:11
Angular6WithMonaco
...
"dependencies": {
"@angular/animations": "6.1.7",
"@angular/cdk": "6.4.7",
"@angular/material": "6.4.7",
"hammerjs": "2.0.8",
"ngx-monaco-editor": "^6.0.0"
},
"devDependencies": {
"@angular-devkit/build-angular": "0.8.1",
@1nv1n
1nv1n / angular-material-electron-ng-test.log
Created June 30, 2018 01:53
ng test Error on Angular Material
10% building modules 1/1 modules 0 active(node:15388) DeprecationWarning: Tapable.plugin is deprecated. Use new API on `.hooks` instead
29 06 2018 20:51:39.550:INFO [karma]: Karma v2.0.4 server started at http://0.0.0.0:9876/
29 06 2018 20:51:39.552:INFO [launcher]: Launching browser Chrome with unlimited concurrency
29 06 2018 20:51:39.565:INFO [launcher]: Starting browser Chrome 29 06 2018 20:51:46.520:INFO [Chrome 67.0.3396 (Windows 10 0.0.0)]: Connected on socket xLhf5A7WJuiWFkCAAAAA with id 74579522
Chrome 67.0.3396 (Windows 10 0.0.0): Executed 0 of 3 SUCCESS (0 secs / 0 secs)
Chrome 67.0.3396 (Windows 10 0.0.0) HomeComponent should display App title on toolbar FAILED
<span class="expand-on-toolbar"></span>
<span>
<button mat-icon-button [ERROR ->][mat-menu-trigger-for]="menu">
<mat-icon>more_vert</mat-icon>
@1nv1n
1nv1n / debug.log
Created January 28, 2018 16:26
Flutter Layout Exception
I/flutter (30321): ══╡ EXCEPTION CAUGHT BY RENDERING LIBRARY ╞═════════════════════════════════════════════════════════
I/flutter (30321): The following assertion was thrown during performLayout():
I/flutter (30321): RenderCustomMultiChildLayoutBox object was given an infinite size during layout.
I/flutter (30321): This probably means that it is a render object that tries to be as big as possible, but it was put
I/flutter (30321): inside another render object that allows its children to pick their own size.
I/flutter (30321): The nearest ancestor providing an unbounded height constraint is:
I/flutter (30321): RenderFlex#00a76 NEEDS-LAYOUT NEEDS-PAINT
I/flutter (30321): creator: Column ← DefaultTextStyle ← AnimatedDefaultTextStyle ← _InkFeatures-[GlobalKey#bc2a3 ink
I/flutter (30321): renderer] ← NotificationListener<LayoutChangedNotification> ← PhysicalModel ←
I/flutter (30321): AnimatedPhysicalModel ← Material ← AppContainer ← _ModalScopeStatus ←