E
E
Egor Tomashin2020-02-19 18:51:58
JavaScript
Egor Tomashin, 2020-02-19 18:51:58

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?
5e4d5990ed303563933390.png
5e4d59970c9b1186836504.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Stockholm Syndrome, 2020-02-19
@StockholmSyndrome

peach will only open in VK itself, because locally the vk-connect library will not work

T
TheVer4, 2020-03-10
@TheVer4

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 question

Ask a Question

731 491 924 answers to any question