“Uncaught TypeError: undefined is not a function” - Beginner Backbone.js Application

前端 未结 3 1723
离开以前
离开以前 2020-12-23 16:47

I\'m setting up a pretty simple app with backbone, and I\'m getting an error.

Uncaught TypeError: undefined is not a function example_app.js:7
ExampleApp.ini         


        
3条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-23 17:27

    [Joke mode on]

    You can fix this by adding this:

    https://github.com/donavon/undefined-is-a-function

    import { undefined } from 'undefined-is-a-function';
    // Fixed! undefined is now a function.
    

    [joke mode off]

提交回复
热议问题