vue-cryptoicon icon indicating copy to clipboard operation
vue-cryptoicon copied to clipboard

How to apply it to vue3.0 project?

Open jacky-yanglei opened this issue 3 years ago • 6 comments

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

jacky-yanglei avatar Apr 26 '21 12:04 jacky-yanglei

same issue, did you find any solution??

rashnk avatar May 17 '21 09:05 rashnk

same issue, did you find any solution??

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

jacky-yanglei avatar May 18 '21 07:05 jacky-yanglei

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

devsigner-xyz avatar Jun 08 '21 17:06 devsigner-xyz

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>

pespantelis avatar Oct 10 '21 13:10 pespantelis

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.

vttkrk avatar Aug 07 '23 15:08 vttkrk

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';

julfinch avatar Sep 12 '23 09:09 julfinch