Polymer / pwa-starter-kit

Starter templates for building full-featured Progressive Web Apps from web components.
https://pwa-starter-kit.polymer-project.org
2.37k stars 431 forks source link

Console log not working? #266

Closed skukan159 closed 6 years ago

skukan159 commented 6 years ago

I am trying to use console.log in one of my Views and nothing is appearing in my console, but when I try to alert, it works fine. Is this to be expected? Here is the code:

import { html } from '@polymer/lit-element';
import { PageViewElement } from '../components/page-view-element.js';

// These are the shared styles needed by this element.
import { SharedStyles } from '../components/shared-styles.js';

class MyView4 extends PageViewElement {
  render() {
    return html`
      ${SharedStyles}
      <section>
      <button @click="${this._testConsole}">Test Console</button>
      </section>
    `
  }

  _testConsole(){
    var array = [1,2,3,4];
    console.log(true);
    console.log("Hello World!");
    alert("Helo World!");
  }

}

window.customElements.define('my-view4', MyView4);
skukan159 commented 6 years ago

Apologies, It was a mistake on my side.

goatandsheep commented 5 years ago

What was the mistake?

skukan159 commented 5 years ago

If I remember correctly, I accidentally applied some search filters in my console so I could not see any of my logs.

chisomoranebo commented 4 years ago

I can't view my console logs on chrome