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

How to apply it to vue3.0 project? #7

Open
jacky-yanglei opened this issue Apr 26, 2021 · 6 comments
Open

How to apply it to vue3.0 project? #7

jacky-yanglei opened this issue Apr 26, 2021 · 6 comments

Comments

@jacky-yanglei
Copy link

How to apply it to vue3.0 project?
image
image

@rashnk
Copy link

rashnk commented May 17, 2021

same issue, did you find any solution??

@jacky-yanglei
Copy link
Author

same issue, did you find any solution??

https://github.com/TokenTax/cryptoicon-api It may be useful

@devsigner-xyz
Copy link

This would be an incredible improvement. I am trying to figure how to solve this, I'll post later if found a solution.

@pespantelis
Copy link

My workaround to use it with vue 3:

<template>
  <CryptoIcon symbol="eth" size="24" />
</template>

<script>
  import CryptoIcon from 'vue-cryptoicon/src/components/Cryptoicon';
  import { Eth } from 'vue-cryptoicon/src/icons';

  CryptoIcon.add([Eth]);

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

@vttkrk
Copy link

vttkrk commented Aug 7, 2023

import CryptoIcon from 'vue-cryptoicon/src/components/Cryptoicon';

It's saying:
Failed to resolve import "vue-cryptoicon/src/components/Cryptoicon" from "src\main.js". Does the file exist?
Is there any new update? Because this issue is openned since 2021.

@julfinch
Copy link

import CryptoIcon from 'vue-cryptoicon/src/components/Cryptoicon';

It's saying: Failed to resolve import "vue-cryptoicon/src/components/Cryptoicon" from "src\main.js". Does the file exist? Is there any new update? Because this issue is openned since 2021.

Same error that I got after using his solution. I tried putting ".vue" to it and now it works.

import CryptoIcon from 'vue-cryptoicon/src/components/Cryptoicon.vue';

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

6 participants