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

Error import Spriterspin #74

Open
phpiando opened this issue May 10, 2020 · 1 comment
Open

Error import Spriterspin #74

phpiando opened this issue May 10, 2020 · 1 comment

Comments

@phpiando
Copy link

I am trying to use Spriterspin in a new project, however, I am having the following error:
https://prnt.sc/se819d

My Code is:

<template>
  <f7-page name="home">        
    <f7-block strong>
      <p>Here2 is your blank Framework7 app. Let's see what we have here.</p>
    </f7-block>
  </f7-page>
</template>
<script>
  import $ from "jquery"
  import * as SpriteSpin from "spritespin"

  export default {
    data() {
      return {        
        
      }
    },
    mounted() { 
      console.log(SpriteSpin)
    }
  }
</script>
@giniedp
Copy link
Owner

giniedp commented May 10, 2020

How do you compile that? Do you use webpack? if so, you probably need something like https://webpack.js.org/plugins/provide-plugin/#usage-jquery Otherwise you must ensure that jquery is globally available as jQuery or as $

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

2 participants