R
roblox-ts•2mo ago
Braden

Updating React broke @rbxts/pretty-react-hooks and many other modules

Here is my package.json I am getting an error in the console of:
13:24:41.102 Infinite yield possible on 'ReplicatedStorage.rbxts_include.node_modules.@rbxts.pretty-react-hooks.node_modules.@rbxts:WaitForChild("ReactLua")' - Studio
13:24:41.102 Stack Begin - Studio
13:24:41.102 Script 'ReplicatedStorage.rbxts_include.node_modules.@rbxts.pretty-react-hooks.node_modules.@rbxts.react-roblox', Line 1 - Studio - react-roblox:1
13:24:41.102 Stack End - Studio
13:24:41.102 Infinite yield possible on 'ReplicatedStorage.rbxts_include.node_modules.@rbxts.pretty-react-hooks.node_modules.@rbxts:WaitForChild("ReactLua")' - Studio
13:24:41.102 Stack Begin - Studio
13:24:41.102 Script 'ReplicatedStorage.rbxts_include.node_modules.@rbxts.pretty-react-hooks.node_modules.@rbxts.react-roblox', Line 1 - Studio - react-roblox:1
13:24:41.102 Stack End - Studio
Multiple over libraries call ReactLua this way:
local script: any = script

local React = require(script.Parent:WaitForChild("ReactLua").React)
local script: any = script

local React = require(script.Parent:WaitForChild("ReactLua").React)
I am not sure what i have wrong here, I made sure all of the react libraries are at the latest. I am tempted to move back to 0.4.0 It appears that ReactLua is multiple directories higher in the includes The script i have selected is the one throwing the error but many other scripts require ReactLua the same way
Solution:
deleting out, node_modules, flamework.build as well as yarn upgrade fixed it for me. I guess sometimes you really gotta wipe it all out 🤣
Jump to solution
1 Reply
Solution
Braden
Braden•2mo ago
deleting out, node_modules, flamework.build as well as yarn upgrade fixed it for me. I guess sometimes you really gotta wipe it all out 🤣

Did you find this page helpful?