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

Works only if there is only one Svelte component in the project #2

Closed
thojanssens opened this issue Mar 17, 2020 · 0 comments
Closed

Comments

@thojanssens
Copy link

I added in App.svelte :

<svelte:options tag="svelte-clock" />

<script>
  import Hello from './Hello.svelte';
  /* code */

I added a file Hello.svelte, and just wrote in the file:

hello!

But now when running npm run build, the following error message is shown:

src/main.js → public/build/bundle.js...
(!) Plugin svelte: No custom element 'tag' option was specified. To automatically register a custom element, specify a name with a hyphen in it, e.g. <svelte:options tag="my-thing"/>. To hide this warning, use
<svelte:options tag={null}/>
src\Hello.svelte
1: hello!
^
2:
created public/build/bundle.js in 685ms

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

1 participant