Error while installing ssh2-sftp-client in Next.js

I want to store uploaded files in my domains storage through SFTP. So I found multer-sftp package but when I tried to run the command yarn add multer-sftp ssh2-sftp-client the second package gives a weired error. I tried removing and reinstalling node_modules, installing cmake in wsl then reinstall packages as in How do I resolve… Read More Error while installing ssh2-sftp-client in Next.js

Styled-components getting Expecting Unicode escape sequence \uXXXX

I’m going through this .net tutorial https://docs.microsoft.com/en-us/learn/modules/build-web-api-minimal-spa/3-exercise-create-front-end I’ve followed the steps and even copy/pasted their code for Main.js: import React, { useState } from "react"; import styled from "styled-components"; const PizzaFrame = styled.div\` border: solid 1px gray; padding: 10px; margin: 15px 10px; border-radius: 5px; box-shadow: 0 0 5px grey; font-family: Arial; `; const Input =… Read More Styled-components getting Expecting Unicode escape sequence \uXXXX

facing a permission issue when build react app in GitHub actions

This is my GitHub Actions script to build a react project: jobs: build: runs-on: ubuntu-latest steps: – uses: actions/checkout@v2 – uses: actions/setup-node@v2 with: node-version: 14 – name: Install yarn uses: borales/actions-yarn@v2.1.0 – name: Build React App run: | sudo rm -rf node_modules yarn umi build when I run this project in GitHub actions, shows error:… Read More facing a permission issue when build react app in GitHub actions