« first day (4020 days earlier)      last day (919 days later) » 

12:18 AM
@sanders The top level object that you're defining doesn't have a key for the array.
 
@llui85 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.
 
!!slayer or champ
 
champ
 
 
2 hours later…
1:53 AM
Hey all
Can some one share your thoughts on this question?
1
A: Angular form group vs form control and form builder in Reactive Forms

YuriyWell, there is no technical advantage and whichever code you use all boils down to your preference. The official docs describe it as: Creating form control instances manually can become repetitive when dealing with multiple forms. The FormBuilder service provides convenient methods for generatin...

 
 
7 hours later…
8:38 AM
hello guys anyone know this Error ?
 
@Garrix 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.
 
Network request failed
at node_modules/whatwg-fetch/dist/fetch.umd.js:535:17 in setTimeout$argument_0
 
9:07 AM
2
Q: TypeError - Network Request Failed (no hint where problem is)

Kubaghetto the fresh TestobunI face big complications here, my app doesnt start up and I get this strange error I havent faced before. Im running my app via Expo, just as a sidenote. [Unhandled promise rejection: TypeError: Network request failed] node_modules\whatwg-fetch\dist\fetch.umd.js:535:17 in setTimeout$argument_0 ...

 
 
1 hour later…
10:16 AM
0
A: Angular form group vs form control and form builder in Reactive Forms

minigeekLets take an example. You can use it when the below use cases are there formControl: When you have only one independent field on your UI design, maybe an input. So there is no need for a form tag. formGroup: When you have a form that has multiple inputs, dropdown, radio buttons. All of which you ...

 
@minigeek 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.
 
 
6 hours later…
4:24 PM
@Garrix Just want to know where getting that error message when you are trying to install some fetch package?
 
 
1 hour later…
5:26 PM
posted on October 18, 2021 by Prudhvikumar Bommana

The Beta channel has been updated to 95.0.4638.54 for Windows, Mac and Linux. A full list of changes in this build is available in the log. Interested in switching release channels? Find out how here. If you find a new issues, 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 Bommana Google

 
6:24 PM
i have an error telling me that the function was expecting an object, but received a string. but i'm most certainly giving it an object
huh... i bet it's caching
(not javascript)
def not caching
 
if (author.is("Kevin B")) throw randomTrollingError()
 
struct public function createOrReplaceInventoryItem (required struct InventoryItem) {
writeDump(isStruct(CurrentInventoryItem)); // true
Cannot cast String [] to a value of type [struct]
 
6:39 PM
ColdFusion, I assume
 
yup
why i figured caching, it caches components
but it's not that, i'm in dev mode
 
First time I see CF code. Somehow, it's not what I expected, even though I didn't know what I expected.
 
this is cfscript, different from cfml
it's very... javascript-like while not being javascript like
 
That might be way. Even though I didn't know there were two things until now.
 
Hmm... interesting
removing the typecheck doesn't change the error
 
6:44 PM
Uh...caching? I know you've checked it but sounds like that.
 
i'm trying a more aggressive cache clear
 
Or it's a different error not from this code.
cache.clearAggressively()
 
nah, same deal. now for a more aggressive debugging technique, deleting the function entirely
that changed the error, so not caching
and correct function
Ah, shit, i bet it's the return
yeah... 'OK' converts to a string, not a struct
aka the function within this function that formats the response isn't ensuring the result is a struct
 
Pfft, I could have told you that. If I knew it.
 
indeed
which means this function has been doing what it's meant to all along, but i wasn't getting the feedback i needed to know that
 
 
2 hours later…
8:30 PM
solution was to apply return type checking to all methods, which should have been the case to begin with >.< now when an error related to that occurs i'll be sent to the correct function
 
Is it possible to check whether all assets required to render a div have been loaded? E.g. if I have <div id='a'><img src='cat.jpg'></div> can I call a method on #a to know if its child image and all other child elems have loaded?
 
Is it possible someone help me with a react-typescript related issue on a new chat? Since the site is down I am not sure where to post the question.
 
@user14765634 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.
 
What's the issue?
 
ype '{ image: string; name: string; height: string; weight: string; abilities: string; }' is not assignable to type 'IntrinsicAttributes & Props & { children?: ReactNode; }'.
Property 'image' does not exist on type 'IntrinsicAttributes & Props & { children?: ReactNode; }'.ts(2322)
I have two components - card and cardList and I want to call the cardList in the App component.

The card will be a template for a single item. The cardList will display the data from the API here using the Card component as template. But what I am missing is the connection between these two components to display the data correctly and I also have issues with the children prop.
 
8:41 PM
@user14765634 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
1 message moved to Trash can
 
interface Props {
  pokemonItem: PokemonItem;
  children: React.ReactNode | React.ReactNode[];
}

const CardComponent: React.FC<Props> = (props: Props) => {
  const { pokemonItem } = props;
  const { name, weight, height, abilities, image } = pokemonItem;

  const [imageLoaded, setImageLoaded] = React.useState(false);

  return (
    <div imageLoaded={imageLoaded}>
      <div src={image} onLoad={() => setImageLoaded(true)} />
      <div>
        <h3>Name: {name}</h3>
        <h3>Height: {height}</h3>
Thanks for the advice! Totatlly new to this. :)
 
8:57 PM
Please see the pastie with the code of all three components - card, cardList and the app.tsx
 
9:14 PM
 

« first day (4020 days earlier)      last day (919 days later) »