Problem with GET from Parse

I dont know what im doing bad… Im trying to get some data from PARSE but Im getting this error when I launch the app:

My code is this:

    <App Theme="Basic" ClearColor="#eeeeeeff">
    <DockPanel>
        <StatusBarBackground DockPanel.Dock="Top" />
              <JavaScript>
                      var Parse = require("Parse").Parse;
                    var Observable = require('FuseJS/Observable');
                    var Camera = require('FuseJS/Camera');
                    var Parse = require("Parse").Parse;
                    Parse.initialize("APP ID", "JAVASCRIPT ID"); 
                    var ResultadosNombres = Observable();

                    function Nombre(nombre){
                    var self = this;
                    this.nombre = nombre;
                    }

                      function GetPost(args) {
                          var query = new.Pase.Query(datos);
                          query.find({
                            success: function(results){
                                for(var i = 0; i < results.length; i++) {
                                    ResultadosNombres.add( new Nombre( results[i].get("nombre")));
                                }
                            }, error: function(error) {

                            }
                        });
                      }

                      module.exports = {
                       GetPost: GetPost,
                    Nombre: Nombre,
                    nombre: nombre,
                    ResultadosNombres: ResultadosNombres
                    };
              </JavaScript>
              <JavaScript File="parse-1.5.0.min.js" ux:Global="Parse" />

              <ScrollViewer>
                  <StackPanel>
                      <Panel  Background="Blue" Width="100%" Height="80." >
                          <Text Alignment="VerticalCenter" Value="Get Nombres" TextColor="#fff" FontSize="20" TextAlignment="Center" />
                          <Clicked Handler="{GetPost}" />                      </Panel>

                    <Image Alignment="Center" File="{imageFile}" Width="300." StretchMode="Uniform" />
                    <Each Items="{ResultadosNombres}" >
                        <Text Value="{nombre}"  />
                    </Each>
            </StackPanel>
        </ScrollViewer>

    </DockPanel>
</App>

What am i doing wrong? Thanks!

(I dont know why the entire code is white…)

Hi!

If you look in the console output, you get more error information.

You have a syntax error in your javascript:

ErrorMessage: Unexpected token '.' in expression.
StackTrace: SyntaxError: Unexpected token '.' in expression.
at (no filename):14

This line is:

var query = new.Pase.Query(datos);

As you can see, there should be no . after new.

But thanks for reporting this - we will improve the error handling so that the JS error is presented in a more clear manner :slight_smile:

Thanks!!! Sorry I did not see the “.”!