function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Alba RivasAlba Rivas 

Uncaught TypeError: this.get(...).querySelectorAll is not a function in standalone app


I have developed a Lightning Component which includes some css which I have stored in a static resource in the next way:

<ltng:require styles="/resource/HelloWorld/HelloWorld.css" />

If I visualize this component from SF1 navigation menu, the css is correctly loaded and the component correctly visualized. I have included the component as well in a standalone app in the next way:

<aura:application >
    <c:HelloWorld />

When I try to visualize the app (accessing an error is shown to me: Uncaught TypeError: this.get(...).querySelectorAll is not a function

I have checked that the problem is the ltng:require tag, as if I comment it out, the standalone app works like a charm.

Any ideas?