-
Notifications
You must be signed in to change notification settings - Fork 11
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
instalation issue #22
Comments
Can you provide a link to a Minimal Reproducible Example (CodeSandbox, StackBlitz, etc.)? |
I can give the list of my dependencies |
rabby.js import { configureChains, createConfig } from "@wagmi/core"; const { chains, publicClient, webSocketPublicClient } = configureChains( const config = createConfig({ export const rabbyKit = createModal({ rabbykit.open(); console.log("current rabbykit modal open status:", rabbyKit.getOpenState()); rabbykit.close(); main.js import {rabbyKit} from '@/assets/js/rabby.js' |
maybe you can give it a try in the webpack config
|
vue.config.js process.env.VUE_APP_BUILD_YEAR = new Date().getFullYear() if (process.env.NODE_ENV !== 'production') { module.exports = { pluginOptions: { if(process.env.VUE_APP_BUILD_REL_OUTPUT_DIR) { if(process.env.VUE_APP_BUILD_PUBLIC_PATH) { ERROR in ./node_modules/@wagmi/connectors/dist/walletConnect.js Module parse failed: Unexpected token (71:35)
| const lastUsedChainId = store?.state?.data?.chain?.id; @ ./node_modules/@wagmi/core/dist/connectors/walletConnect.js 4:0-73 5:0-7:2 error in ./node_modules/svelte/src/runtime/internal/each.js Module parse failed: Unexpected token (7:31)
| ? array_like_or_iterator @ ./node_modules/svelte/src/runtime/internal/index.js 6:0-26 6:0-26 |
This seems to be a configuration issue with your project. Maybe you can try adding optional chaining. |
It worked, thanks! |
after installing packages`
npm i @rabby-wallet/rabbykit @wagmi/core@1 viem@1
and importing`
import { configureChains, createConfig } from "@wagmi/core";
import { mainnet, arbitrum, bsc, optimism, polygon } from "@wagmi/core/chains";
import { publicProvider } from "@wagmi/core/providers/public";
import { alchemyProvider } from "@wagmi/core/providers/alchemy";
import { infuraProvider } from "@wagmi/core/providers/infura";
import { createModal } from "@rabby-wallet/rabbykit";
I have got error`
svelte/internal in ./node_modules/@rabby-wallet/rabbykit/dist/index.js
project on vue2
The text was updated successfully, but these errors were encountered: