Results 1 to 5 of 5

Thread: Cannot read property 'ClassManager' of undefined

  1. #1
    Sencha User
    Join Date
    Mar 2016
    Posts
    8
    Answers
    1

    Default Answered: Cannot read property 'ClassManager' of undefined

    I get the error: Cannot read property 'ClassManager' of undefined.

    The whole app doesn't start. Looks like Ext is not defined. Some quick tips or do I need to post my setup here? If yes, what should I post? I build everything from scratch (webpack).

  2. Fixed it by placing the ExtReactWebpackPlugin before the HtmlWebpackPlugin in my webpack.config.js. This sort of makes sense I guess, but if you don't know this it is very hard to find since there are no hints about this anywhere. Tnx for your reply!

  3. #2
    Sencha User Mark.Brocato's Avatar
    Join Date
    Mar 2015
    Location
    Maryland
    Posts
    482
    Answers
    114

    Default

    That error is most likely caused by the ext.js and ext.css bundles produced by webpack not being loaded via your index.html. By default those assets are built to:

    build/ext-react/ext.js
    build/ext-react/ext.css

    All of the examples we provide use html-webpack-plugin, which automatically adds all assets produced by webpack to the index.html at build time. You can either use that plugin or add script and link tags for those assets manually. The html-webpack-plugin is nice because it adds a cache-busting hash to each url automatically. I suggest having a look at the webpack configuration in the reactor-boilerplate app for reference: https://github.com/sencha/extjs-reac...or-boilerplate

  4. #3
    Sencha User
    Join Date
    Mar 2016
    Posts
    8
    Answers
    1

    Default

    Fixed it by placing the ExtReactWebpackPlugin before the HtmlWebpackPlugin in my webpack.config.js. This sort of makes sense I guess, but if you don't know this it is very hard to find since there are no hints about this anywhere. Tnx for your reply!

  5. #4
    Sencha User Mark.Brocato's Avatar
    Join Date
    Mar 2015
    Location
    Maryland
    Posts
    482
    Answers
    114

    Default

    Ah, yes. I will add that to the guides. Thank you!

  6. #5
    Sencha User
    Join Date
    Sep 2015
    Posts
    36

    Default

    Quote Originally Posted by Mark.Brocato View Post
    Ah, yes. I will add that to the guides. Thank you!
    And where does one find those guides?

Similar Threads

  1. Cannot read property 'log' of undefined
    By alexander.urban in forum Sencha Touch 2.x: Q&A
    Replies: 1
    Last Post: 26 Jan 2015, 7:12 AM
  2. Replies: 3
    Last Post: 16 Dec 2014, 7:13 AM
  3. Cannot read property 'Notification' of undefined
    By blueskii68 in forum Sencha Touch 2.x: Q&A
    Replies: 4
    Last Post: 13 Oct 2013, 11:57 PM
  4. Can not read property 'fn' of undefined
    By bee in forum Ext: Q&A
    Replies: 6
    Last Post: 7 Sep 2011, 1:56 PM
  5. Help: Cannot Read Property 'id' of undefined
    By JCFMachado in forum Ext: Discussion
    Replies: 1
    Last Post: 16 Jun 2011, 3:06 AM

Posting Permissions

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