snowplow-incubator / snowplow-roku-tracker

Snowplow event tracker for Roku devices
Apache License 2.0
2 stars 0 forks source link

After installing with Roku package manager, cannot create Snowplow node #16

Closed RowanG1Bilue closed 2 years ago

RowanG1Bilue commented 2 years ago

Describe the bug After installing Snowplow via Roku package manager with this procedure: https://www.npmjs.com/package/@snowplow/roku-tracker

And creating the snowplow node via these commands:

m.global.AddField("snowplow", "node", false)
m.global.snowplow = CreateObject("roSGNode", "snowplow_Snowplow")

I get:

BRIGHTSCRIPT: ERROR: roSGNode: Failed to create roSGNode with type snowplow_Snowplow: pkg:/source/startup/main.brs(26)

Any ideas?

Device information (please complete the following information):

Additional context Add any other context about the problem here.

RowanG1Bilue commented 2 years ago

The problem was that I tried to create the node before showing the scene. Works fine when moving the code to after screen.show()