« first day (4428 days earlier)      last day (511 days later) » 

12:00 AM
I followed this guide to make certs stackoverflow.com/questions/37714558/… and I am using the loopback IP to connect to
 
posted on November 29, 2022 by Srinivas Sista

The Chrome team is delighted to announce the promotion of Chrome 108 to the stable channel for Windows, Mac and Linux. This will roll out over the coming days/weeks. Chrome 108.0.5359.71 ( Mac/linux) and 108.0.5359.71/72( Windows)  contains a number of fixes and improvements -- a list of changes is available in the log. Watch out for upcoming Chrome&nbs

posted on November 29, 2022 by Krishna Govind

Hi, everyone! We've just released Chrome 108 (108.0.5359.61) for Android: it'll become available on Google Play over the next few days. This release includes stability and performance improvements. You can see a full list of the changes in the Git log. If you find a new issue, please let us know by filing a bug. Android releases contain the same security fixes as their correspond

 
I followed this guide to make certs stackoverflow.com/questions/37714558/… and I am using the loopback IP to connect to
 
 
8 hours later…
7:38 AM
can someone help me why i cannot able to do serializeArray() with form data , i keep getting Uncaught TypeError: n.replace is not a function and there is no replace used here
 
8:16 AM
|| mcve
 
We have troubles to understand and/or reproduce your problem(s). Please create a Minimal, Reproducible example which allows us to understand it better.
 
 
7 hours later…
3:33 PM
most of my problem the last few days have been with importing in the node js libraries
what do i need to read up on to overcome these issues?
 
The manual to a better language.
/sick burn
 
How to solve this typescript error while creating the object e1?
 
That completely depends on the issues...
 
i get error messages as shown above with modules
lol
 
    type Admin = {
        name:string;
        age:string;
        privileges:string[];
    };

    type Employee = {
        name:string;
        age:number;
        startDate:Date;
    };

    type ElevatedEmployee = Admin & Employee;

    const e1:ElevatedEmployee = {
        name:"Max",
        age: 51, //error -
        privileges:['create-server'],
        startDate:new Date()
    };
 
3:35 PM
can i mix imports with requires? what are common JS and what are ES modules and why are they causing me issues?
what is webpack and bundler?
anything i can read on helping to understand those things
 
@DamodaraSahu type ElevatedEmployee = Omit<Admin, 'age'> & Employee;
@1.21gigawatts those are questions that are waaaaaay too complex to answer in chat.
 
also i'm using typescript which the error messages are saying to rename my .js files to .cjs but i'm using .ts so now what?
 
@DamodaraSahu I mean...you can't. Not with this type definition. Age can't be both number and a string at the same time. Write a better type definition that makes sense.
 
Also yea, why can age even be a string?
 
if it's not a number how are you gonna increment it
 
3:37 PM
@1.21gigawatts No - once you make something an ES module, you lose require, and vice versa. That said, TypeScript has special syntax that makes use of require, but it works differently under the hood
 
Eh, string, I meant string
 
i mean
 
@DamodaraSahu I think you're better off moving the shared properties to a separate type:
 
@1.21gigawatts you can interop CJS modules to ESM, though, with the esModuleInterop TSC flag
 
Or better yet, use interfaces:
 
3:41 PM
@DamodaraSahu riddle me this: what does intersecting a number type with a string type resolve to?
 
a numeric string :O
 
@OlegValteriswithUkraine This shows never type
 
Because something can't be both a string and a number at the same time
 
this is javascript tho
 
TypeScript
 
3:45 PM
same diff
 
for importing and require is one choice better than another?
 
consistency is important
 
Well, JS doesn't care about the type. TS explicitly does, so that's a significant difference for this question
 
@1.21gigawatts Not really. They are alternatives of one another. But just not interoperable. You can have a tool transform import to require, though. IIRC, the opposite can also be done. As in, it can work, just can't remember if there is a common tool that does it.
I personally prefer import. But I can't really show much reasoning for it.
Both should work, though. But the build tools you use might need to be configured correctly.
 
type User = {
    name:string;
    age:number | string;
}
 
4:09 PM
I'm currently struggling with two methods (one works the other one doesn't) to attach an event to an input field within shadow-root. Any explaination is highly appreciated - here's the snippet, function is declared in head via script tag:

// Menu for table with search field within shadow-root
let menu = document.createElement("div");

// Vers. 1 via innerHTML -------------------------> WORKS - FUNCTION GETS INVOKED
menu.innerHTML =
`<span style="margin-left:4px; margin-right:4px;">Suche: </span>
 
does test123(this.value) return a function to be bound to that event?
i would assume not
the equivalent would be using an anonymous function there that calls test123
 
@KevinB Nope, for now there's just a simple console.log to see if the function even gets invoked..
 
yea, so fix that
addEventListener needs a function
you gave it whatever test123 returns instead
!!mdn addEventListener
 
thanks for the insights ;)
 
4:34 PM
search.addEventListener('onkeyup', test123(this.value) ); probably needs to be search.addEventListener('onkeyup', function() { test123(this.value) });
Or alternatively (without using this): search.addEventListener('onkeyup', (event) => { test123(event.target.value) });
 
4:49 PM
@CcCcSS Please don't post unformatted code - use the up arrow to edit your post, then hit Ctrl + K to format the code in that post. See the faq. You have 25 seconds to edit and format your message properly before it will be removed. Please separate code blocks from your actual question. Put your question in 1 message and then your code in a 2nd and format it.
For posting large code blocks, use a paste site like like gist.github.com, hastebin.com, pastie.org or a demo site like jsbin.com
@CcCcSS Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
1 message moved to Trash can
 
Hi, can somoeone help me out?

  This creates tabs and the tab-content hast to be inside this div:

  <div id="tab" class="tabs inliner">

  </div>

It has to be exactly there, recreating this div is not working.

How can i rewrite the js so i can use any class / id ?


  <div class="wrapper">

      <button> Tab 1</button>
       <button> Tab 2</button>
       <button> Tab 3</button>

    <div id="tab" class="tabs inliner">
        <div>
            <h2>Content 1</h2>
        </div>
    </div>
 
5:26 PM
posted on November 30, 2022 by Ben Mason

Hi everyone! We've just released Chrome Dev 109 (109.0.5414.23) for Android. It's now available on Google Play. You can see a partial list of the changes in the Git log. For details on new features, check out the Chromium blog, and for details on web platform updates, check here. If you find a new issue, please let us know by filing a bug. Krishna Govind Google Chrome

 
 
4 hours later…
9:08 PM
posted on November 30, 2022 by Prudhvikumar Bommana

The dev channel has been updated to 109.0.5414.25 for Windows,Mac and Linux. A partial list of changes is available in the log. Interested in switching release channels? Find out how. If you find a new issue, please let us know by filing a bug. The community help forum is also a great place to reach out for help or learn about common issues. Prudhvikumar BommanaGoogle Chrome

 

« first day (4428 days earlier)      last day (511 days later) »