Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read property 'ItemView' of undefined #295

Closed
matiux opened this issue Aug 30, 2015 · 3 comments
Closed

Cannot read property 'ItemView' of undefined #295

matiux opened this issue Aug 30, 2015 · 3 comments

Comments

@matiux
Copy link

matiux commented Aug 30, 2015

I have a problem with Marionette application bundled with Webpack.
When I active Marinette Inspector, I get this error:

Uncaught TypeError: Cannot read property 'ItemView' of undefined

agent.js

.............
}(Agent));
;(function(Agent){

  var assignClassNames = function(Backbone, Marionette) {
----->    Marionette.ItemView.prototype._className = 'ItemView';   <-------
    Marionette.CollectionView.prototype._className = 'CollectionView';
    Marionette.CompositeView.prototype._className = 'CompositeView';
    Marionette.View.prototype._className = 'Marionette.View';
.............

Bit the application works

@jasonLaster
Copy link
Member

sounds like you need to use

if (window.__agent) {
  window.__agent.start(Backbone, Marionette);
}

@paulfalgout
Copy link
Member

possibly related #305

@blikblum blikblum mentioned this issue Feb 25, 2017
@blikblum
Copy link
Contributor

See caveats section in readme

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants