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

Torus Wallet Webpack Error #14

Open
Zalkota opened this issue Mar 9, 2022 · 6 comments
Open

Torus Wallet Webpack Error #14

Zalkota opened this issue Mar 9, 2022 · 6 comments

Comments

@Zalkota
Copy link

Zalkota commented Mar 9, 2022

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
Copy link
Author

Zalkota commented Mar 9, 2022

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
Copy link

bufo24 commented Mar 10, 2022

I am having the same issue.

@bufo24
Copy link

bufo24 commented Mar 10, 2022

This worked for me:
#4 (comment)

@johnnyshankman
Copy link

This worked for me: #4 (comment)

This didn't work for me sadly.

@johnnyshankman
Copy link

johnnyshankman commented May 6, 2022

This happens with a default installation and the inclusion of

import Web3ModalVue from 'web3modal-vue';

in vue-cli for vue3

@superjiangs
Copy link

I am having the same issue.

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

5 participants
@Zalkota @johnnyshankman @superjiangs @bufo24 and others