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

<App> was created without expected data property 'event' warning in dev mode #972

Closed
Kiho opened this issue Dec 3, 2017 · 1 comment · Fixed by #999
Closed

<App> was created without expected data property 'event' warning in dev mode #972

Kiho opened this issue Dec 3, 2017 · 1 comment · Fixed by #999
Labels

Comments

@Kiho
Copy link
Contributor

Kiho commented Dec 3, 2017

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'

@Rich-Harris
Copy link
Member

thanks, fixed in 1.46.1

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

Successfully merging a pull request may close this issue.

2 participants