R
roblox-ts•2mo ago
Ohirume

replecs networked error

const playerEntity = world.entity();
world.add(playerEntity, networked); // errors on this line, specifically on 'networked'
const playerEntity = world.entity();
world.add(playerEntity, networked); // errors on this line, specifically on 'networked'
1. Argument of type 'Entity<MemberFilter>' is not assignable to parameter of type 'Id<TagDiscriminator>'.
Type 'Entity<MemberFilter>' is not assignable to type 'Entity<TagDiscriminator>'.
Type 'Entity<MemberFilter>' is not assignable to type '{ readonly __nominal_Entity: unique symbol; readonly __type_TData: TagDiscriminator; }'.
Types of property '__type_TData' are incompatible.
Type 'MemberFilter' is not assignable to type 'TagDiscriminator'.
Type 'undefined' is not assignable to type 'TagDiscriminator'. [2345]
1. Argument of type 'Entity<MemberFilter>' is not assignable to parameter of type 'Id<TagDiscriminator>'.
Type 'Entity<MemberFilter>' is not assignable to type 'Entity<TagDiscriminator>'.
Type 'Entity<MemberFilter>' is not assignable to type '{ readonly __nominal_Entity: unique symbol; readonly __type_TData: TagDiscriminator; }'.
Types of property '__type_TData' are incompatible.
Type 'MemberFilter' is not assignable to type 'TagDiscriminator'.
Type 'undefined' is not assignable to type 'TagDiscriminator'. [2345]
Solution:
Message Not Public
Sign In & Join Server To View
Jump to solution
13 Replies
Solution
Unknown User
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
Ohirume
OhirumeOP•2mo ago
No description
Ohirume
OhirumeOP•2mo ago
No description
Unknown User
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
Ohirume
OhirumeOP•2mo ago
i did consult deepwiki, and it told me to do that, however i didnt know if it was the actual solution since its not outlined in the docs i mean networked sounds like it should be a tag at least doing world.set only to have an undefined value seems weird or maybe not since it may have a player value
Unknown User
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
alihsaas
alihsaas•2mo ago
You have to use set or cast to an Entity<undefined>, it's bc of jecs typings, has been discussed in replecs oss alot
Ohirume
OhirumeOP•2mo ago
deepwiki truly the ai of all time i should remember ross exists more often thanks
PepeElToro41
PepeElToro41•2mo ago
those are not the docs btw
alihsaas
alihsaas•2mo ago
Duck's AI docs strike again 😂
Unknown User
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
PepeElToro41
PepeElToro41•2mo ago
https://github.com/PepeElToro41/replecs repo they are in the about page
Unknown User
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View

Did you find this page helpful?