Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
rokimile
Newbie

Unknown roSGNode 'GridScreen' error HOW TO FIX?

Hello everyone, I made an application according to the guide of the official channel and started giving the following error Failed to create roSGNode with type GridScreen: pkg:/components/UILogic/GridScreenLogic.brs(2) I can't figure out why the code is

 

sub ShowGridScreen()
m.GridScreen=CreateObject("roSGNode","GridScreen")
ShowScreen(m.GridScreen)
end sub

main.brs
sub Main()
ShowChannelRSGScreen()
end sub

sub ShowChannelRSGScreen()
screen=CreateObject("roSGScreen")
m.port=CreateObject("roMessagePort")
screen.SetMessagePort(m.port)
scene=screen.CreateScene("MainScene")
screen.Show()

while(true)
msg=wait(0,m.port)
msgType=type(msg)
if msgType="roSGScreenEvent"
if msg.IsScreenClosed() then return
end if
end while
end sub

 

0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.