Console.log not working in lighttable6/28/2023 ![]() If you want to enable console.log during development you can add this to your ESLint config file. If the calling file is in the same directory, you can just reference the script name. Check your spelling of the 'src' attribute. Console is not part of JavaScript, but instead is an implementation of the browser itself. In general, calls using console should be stripped before being pushed to production. Sounds as if you're not providing the correct path the your scripts.js file, thus it is not getting executed. When the page loads, I see other console.log messages (not from my extension), the alert window pop up but nothing printed to the console. ![]() alert ('CSS code: '+css) console.log ('CSS code:'+css) I have checked to make sure 'All' messages are selected, the context is set to 'top', etc. It's not being overridden because a log of console & nsole return the same exact object (see screenshot). Such messages are considered to be for debugging purposes and therefore not suitable to ship to the client. Alert works fine but console.log outputs nothing. The default selection in the drop-down is Info. Supported values are Verbose, Info, Warnings and Errors. There is a logging level drop-down beside Filter input box. If you click that teal box or go to View -> Console, the console will appear from the bottom. As of today, the UI of developer tools in Google chrome has changed where we select the log level of log statements being shown in the console. It's not a browser-specific issue because the output is the same on every browser (i've checked on chrome/firefox/safari/opera). This means there is new information in the console. The reputation requirement helps protect this question from spam and non-answer activity. You will see that Light Table has provided as standard output, labeled stdout, whatever your program said to print, allowing you to see the results of your program. If you click that teal box or go to View -> Console, the console will appear from the bottom. The reputation requirement helps protect this question from spam and non-answer activity. This means there is new information in the console. If i define console myself the console before the code: var console = nsole Īnd the strangest thing, if i define console myself after the code (console) Earn 10 reputation (not counting the association bonus) in order to answer this question. I've recently had a strange issue, where console.log doesn't output anything if used inside my code but work fine using directly in the console or using.
0 Comments
Leave a Reply. |