Svelte: <App> was created without expected data property 'event' warning in dev mode

Created on 3 Dec 2017  路  1Comment  路  Source: sveltejs/svelte

REPL
event should be white listed in svelte but above REPL generate code block

function App(options) {
    this._debugName = '<App>';
    if (!options || (!options.target && !options._root)) throw new Error("'target' is a required option");
    init(this, options);
    this._state = assign({}, options.data);
    if (!('cats' in this._state)) console.warn("<App> was created without expected data property 'cats'");
    if (!('event' in this._state)) console.warn("<App> was created without expected data property 'event'");
.....
}

and then show warning in browser console when running in dev mode .
<App> was created without expected data property 'event'

bug

Most helpful comment

thanks, fixed in 1.46.1

>All comments

thanks, fixed in 1.46.1

Was this page helpful?
0 / 5 - 0 ratings

Related issues

davidcallanan picture davidcallanan  路  3Comments

st-schneider picture st-schneider  路  3Comments

plumpNation picture plumpNation  路  3Comments

ricardobeat picture ricardobeat  路  3Comments

sskyy picture sskyy  路  3Comments