Questions tagged [umijs]

For questions about the pluggable React application framework

Project homepage - https://umijs.org/

39 questions
15
votes
7 answers

'HTTPS' is not recognized as an internal or external command

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. >…
SoftTimur
  • 5,630
  • 38
  • 140
  • 292
7
votes
2 answers

react-pdf generation is very slow in combination with umijs

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…
mleister
  • 1,697
  • 2
  • 20
  • 46
7
votes
1 answer

'Proxy' is undefined in IE

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…
SoftTimur
  • 5,630
  • 38
  • 140
  • 292
6
votes
1 answer

AADSTS9002326: Cross-origin token redemption is permitted only for the 'Single-Page Application'

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…
CodAvo
  • 183
  • 1
  • 2
  • 16
5
votes
1 answer

How to Disable Row in Antd Table

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…
Heru Wijayanto
  • 439
  • 3
  • 5
  • 16
3
votes
0 answers

User preferred language saved but the page content language didn't change only after I reload

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…
3
votes
1 answer

Internal/modules/cjs/loader.js: 584 error

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.…
Caleb Yang
  • 83
  • 1
  • 12
2
votes
2 answers

how to change default fields of Form.List in antd pro

how I can add my own fields to fill it in the form list {(data, { add, remove }) => { console.log(data); return ( <> {data.map((product)…
mahdi ashori
  • 515
  • 4
  • 13
2
votes
1 answer

Refresh Token for umi request interceptors response

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…
CodAvo
  • 183
  • 1
  • 2
  • 16
2
votes
1 answer

UmiJs Unit test error - _umi.connect) is not a function

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…
Tanuj Gupta
  • 286
  • 5
  • 20
2
votes
1 answer

How to fix problem: TypeError: self.env.emit is not a function?

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…
fengnix
  • 85
  • 6
2
votes
2 answers

How to prevent uglify in Umijs in build?

I'm using UmiJs framework , In its build script it uglify all the files , how can I prevent it from uglify them ?
URL87
  • 10,667
  • 35
  • 107
  • 174
2
votes
2 answers

How to get the token from response?

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…
1
vote
1 answer

How do you get the result from action in another action?

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…
bldg
  • 13
  • 3
1
vote
0 answers

How to integrate Worker-load with antd pro?

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…
jarjar
  • 359
  • 4
  • 10
1
2 3