I want to run a React project in my Windows (as a virtual machine of my Mac).
In a Command Prompt, after running yarn to install dependencies. I did yarn start. And it gave me 'HTTPS' is not recognized as an internal or external command error.
>…
I included react-pdf in a fresh umi project:
PDF-Generation 150 Text-components took arround 311.44 ms without umi
Using umi: 7179.40 ms
Every single element takes about 10X more in umi projects!
Code example I tried
import React from…
I have built an Excel add-in by React+Node+Umi. We have implemented our authentication system. The authentication works in Chrome and Safari, I just realized that it does not work well in IE11; F12 shows that 'Proxy' is undefined.
Although it is an…
I am trying to send cross origin request to get access token on my React spa app localhost.
I got the first 'Access-Control-Allow-Origin' error, to solve it I defined proxy to webpack.
When I run the code block below, I get 400 bad request…
so I worked on a project using react js with umi js and antd as additional dependencies,
I had a problem when I got the task to disable each row in the antd table,
I tried to read the documentation antd but got nothing,
is it possible that you can…
I'm using ant design pro.
The idea is In the platform we have 2 languages to choose from Fr(French) and En(English),
I want the user when he logs in and change the language to English for example when he logs out and log in again the language should…
I am facing an error when I am running npm commands for running a umi app project. This is the error I see when I run the code.
I have tried checking the node module for the loader.js file but I have not been able to find it.…
I use tokens as authorization, when the token expires, I want to create a new token using the refresh token. I can do this with the axios library but I couldn't find how to do it with umi request. Anyone translate the code sample given below to an…
I am new in unit testing in reactjs.
I tried to test my login component rendering
For testing, i am using JEST and enzyme.
[This is the error, i am getting]
Test case code:
import React from 'react';
import { shallow } from 'enzyme';
import Login…
When executing the command "yarn create umi", then select antd in the step "What functionality do you want to enable? antd" and then press ENTER, the whole process will always exit and get the following exception:
? What functionality do you want to…
I'm relatively new in this environment. I use "Ant design pro 4" with React and Typescript for a new project.
I call successful my IdentityServer 4 for a token for a login. I see my response in my Browser.
But how get the token in my code?
import…
I am new to dvajs. I am using React 17,x, Typescript 4.2.3, antd 4.15.0, umi 3.4.7
The problem.
If I navigate to the /s/ page, the code should get some categories from the API and make another request to the server, displaying them on some pages at…
I would like to use web worker inside an "Antd Pro" project. I've tried different ways found on the net but none of them works.
"Antd Pro" is drived by Umijs framework who uses Webpack internally. The only way I found, for this purpose, is by using…