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

Work only if component is registered globally #57

Open
aless673 opened this issue Feb 9, 2023 · 0 comments
Open

Work only if component is registered globally #57

aless673 opened this issue Feb 9, 2023 · 0 comments

Comments

@aless673
Copy link

aless673 commented Feb 9, 2023

Error with local component registration

Uncaught ReferenceError: require is not defined at ./node_modules/epic-spinners/dist/cjs/index.js

<template>
  <div id="app">
    <atom-spinner :animation-duration="1000" :size="60" color="#ff1d5e" />
  </div>
</template>

<script>
import { AtomSpinner } from 'epic-spinners'

export default {
  components: {
    AtomSpinner,
  },
}
</script>

But it works with global registration

import { HalfCircleSpinner } from 'epic-spinners'

cont  app = createApp({});
app.component('half-circle-spinner', HalfCircleSpinner)
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