fix: better message

pull/6991/head
bluwy 5 years ago
parent 0b438c72b4
commit 3f578ce048

@ -157,7 +157,9 @@ export class SvelteComponentDev extends SvelteComponent {
} }
if (!options.target && !current_component) { if (!options.target && !current_component) {
throw new Error("Multiple Svelte instances detected. Please ensure only one instance exists, or set the 'target' option"); throw new Error(
"Multiple Svelte instances detected. This can happen if you use Svelte components which are precompiled to JavaScript. " +
"Ensure to use the raw Svelte version of these components, or set the 'target' option instead");
} }
super(); super();

Loading…
Cancel
Save