Answer the question
In order to leave comments, you need to log in
VK Mini Apps endless loading - what to do?
When starting a local project made according to the guide from VK - https://vk.com/@vkappsdev-quick-start - there is an endless loading, the peach sticker does not appear on click - what should I do?
Answer the question
In order to leave comments, you need to log in
peach will only open in VK itself, because locally the vk-connect library will not work
fixed quite simply
in App.js, replace the appropriate lines:
import React, { useState, useEffect } from 'react';
import connect from '@vkontakte/vk-connect';
import View from '@vkontakte/vkui/dist/components/View/View';
import '@vkontakte/vkui/dist/vkui.css';
import Home from './panels/Home';
import Persik from './panels/Persik';
const App = () => {
const [activePanel, setActivePanel] = useState('home');
const [fetchedUser, setUser] = useState(null);
const [popout, setPopout] = useState(null);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question