SmallRuralDog / web3modal-vue

A single Web3 / Ethereum provider solution for all Wallets
https://smallruraldog.github.io/web3modal-vue/
MIT License
109 stars 68 forks source link

Torus Wallet Webpack Error #14

Open Zalkota opened 2 years ago

Zalkota commented 2 years ago

Is there a webpack loader that is required for this or can I disable the Torus wallet somehow?

 error  in ./node_modules/web3modal-vue/src/providers/connectors/torus.js

Module parse failed: Unexpected token (19:44)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
|
|             const torus = new Torus({
>                 buttonPosition: opts.config?.buttonPosition || buttonPosition,
|                 apiKey: opts.config?.apiKey || apiKey,
|                 modalZIndex: opts.config?.modalZIndex || modalZIndex

 @ ./node_modules/web3modal-vue/src/providers/connectors/index.js 5:0-28 14:0-27:2
 @ ./node_modules/web3modal-vue/src/providers/index.js
 @ ./node_modules/web3modal-vue/src/helpers/utils.js
 @ ./node_modules/web3modal-vue/src/helpers/index.js
 @ ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/web3modal-vue/src/Web3ModalVue.vue?vue&type=script&lang=js&
 @ ./node_modules/web3modal-vue/src/Web3ModalVue.vue?vue&type=script&lang=js&
 @ ./node_modules/web3modal-vue/src/Web3ModalVue.vue
 @ ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/WhitelistForm.vue?vue&type=script&lang=js&
 @ ./src/views/WhitelistForm.vue?vue&type=script&lang=js&
 @ ./src/views/WhitelistForm.vue
 @ ./src/router.js
 @ ./src/main.js
 @ multi (webpack)-dev-server/client?http://192.168.103.108:8080/sockjs-node (webpack)/hot/dev-server.js ./src/main.js
Zalkota commented 2 years ago

You will need to synchronize your wallet and then you debug it

Could you elaborate please? I don't want to use the Torus wallet at all. Are you saying I need to add in the provider options for Torus and then debug it?

bufo24 commented 2 years ago

I am having the same issue.

bufo24 commented 2 years ago

This worked for me: https://github.com/SmallRuralDog/web3modal-vue/issues/4#issuecomment-907876960

johnnyshankman commented 2 years ago

This worked for me: #4 (comment)

This didn't work for me sadly.

johnnyshankman commented 2 years ago

This happens with a default installation and the inclusion of

import Web3ModalVue from 'web3modal-vue';

in vue-cli for vue3

superjiangs commented 1 year ago

I am having the same issue.