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

Torus Wallet Webpack Error

Open Zalkota opened this issue 2 years ago • 6 comments

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 avatar Mar 09 '22 00:03 Zalkota

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?

Zalkota avatar Mar 09 '22 22:03 Zalkota

I am having the same issue.

bufo24 avatar Mar 10 '22 08:03 bufo24

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

bufo24 avatar Mar 10 '22 08:03 bufo24

This worked for me: #4 (comment)

This didn't work for me sadly.

johnnyshankman avatar May 06 '22 20:05 johnnyshankman

This happens with a default installation and the inclusion of

import Web3ModalVue from 'web3modal-vue';

in vue-cli for vue3

johnnyshankman avatar May 06 '22 20:05 johnnyshankman

I am having the same issue.

superjiangs avatar Jan 08 '23 10:01 superjiangs