Results 1 to 2 of 2

Thread: Declaration error when following 'Getting Started' tutorial

  1. #1
    Sencha User
    Join Date
    Jul 2012
    Posts
    2
    Vote Rating
    0
      0  

    Default Declaration error when following 'Getting Started' tutorial

    I have been following this tutorial http://docs.sencha.com/touch/2-0/#!/guide/getting_started to create this application http://docs.sencha.com/touch/2-0/#!/guide/first_app which involves creating a small site with a Home page, a Contact page, and a Blog page.

    Everything went fine for the first two pages, but when I reached the Blog page, I hit an error I can't work out.

    Uncaught Error: The following classes are not declared even if their files have been loaded: 'GS.view.Blog'. Please check the source code of their corresponding files for possible typos: 'app/view/Blog.js

    This is my code on blog.js
    PHP Code:
    Ext.define('GS.view.Blog', {
        
    extend'Ext.navigation.View',
        
    xtype'blog'
    This is my code on main.js
    PHP Code:
      xtype'blog' }, 
    and this is my code on app.js
    PHP Code:
    views: ['Main''Home''Contact''Blog'], 
    As you can see, the declarations are all correct. Or at least, they look correct to me.
    But it's still not running.

    I'm sure it's a simple mistake I've made. Does anyone know how to fix it?

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Answers
    3932
    Vote Rating
    1272
      0  

    Default

    First issue is your file blog.js or Blog.js?
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •