web3modal-vue
web3modal-vue copied to clipboard
Torus Wallet Webpack Error
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
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?
I am having the same issue.
This worked for me: https://github.com/SmallRuralDog/web3modal-vue/issues/4#issuecomment-907876960
This happens with a default installation and the inclusion of
import Web3ModalVue from 'web3modal-vue';
in vue-cli for vue3
I am having the same issue.