yarnpkg

Rails 6 and Tailwind CSS does not deploy to Heroku

爱⌒轻易说出口 提交于 2020-04-13 17:09:21
问题 I have a Rails 6 app that was successfully deployed to Heroku and worked on localhost:3000. I added tailwindcss via yarn and webpack. It runs perfectly fine on localhost, but does not run on heroku. When I run heroku logs I get the following error I've read all the Heroku Rails 6 Webpacker issues, and tried all the suggestions. Nothing worked. I have commented out <%= stylesheet_pack_tag %> ... didn't help I have toggled extract_css: true in webpacker.yml file .... didn't help I have run

How to replace %PUBLIC_URL% in react app on an azure website

99封情书 提交于 2020-04-09 20:07:51
问题 I have a react app that works perfectly fine locally, when I deploy it to Azure, I have a few 404 errors, on the index.html All of them with the tag %PUBLIC_URL% According to the documentation, they will be replaced in the build process, but not sure how this is done, so that when deployed, the correct urls are put in place <!doctype html> <html lang="en" dir="ltr"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable

yarn error “EACCESS: permission denied, scandir '/home/ubuntu/.config/yarn/link'”

戏子无情 提交于 2020-04-07 18:09:03
问题 Whenever I try something with yarn on Ubuntu 16.04 server. It gives an error. I am currently using nodejs v8.10.0 yarn install v1.5.1 error An unexpected error occurred: "EACCES: permission denied, scandir '/home/ubuntu/.config/yarn/link'". info If you think this is a bug, please open a bug report with the information provided in "/home/ubuntu/yarn-error.log". info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command. Anyone know why this is happening? 回答1: It's

yarn error “EACCESS: permission denied, scandir '/home/ubuntu/.config/yarn/link'”

南楼画角 提交于 2020-04-07 17:56:40
问题 Whenever I try something with yarn on Ubuntu 16.04 server. It gives an error. I am currently using nodejs v8.10.0 yarn install v1.5.1 error An unexpected error occurred: "EACCES: permission denied, scandir '/home/ubuntu/.config/yarn/link'". info If you think this is a bug, please open a bug report with the information provided in "/home/ubuntu/yarn-error.log". info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command. Anyone know why this is happening? 回答1: It's

Could not find plugin “proposal-numeric-separator”

我只是一个虾纸丫 提交于 2020-04-07 14:41:11
问题 How to fix Could not find plugin "proposal-numeric-separator" , I get this error when I try to build my React application, I have not ejected the application yet: ./src/index.js Error: [BABEL] /home/pc/Downloads/project/src/index.js: Could not find plugin "proposal-numeric-separator". Ensure there is an entry in ./available-plugins.js for it. (While processing: "/home/pc/Downloads/project/node_modules/babel-preset-react-app/index.js$0") at Array.map (<anonymous>) at Generator.next (<anonymous

Create React App not installing, showing an error and aborting installation

三世轮回 提交于 2020-02-28 01:09:02
问题 I Reinstalled Node.js and Yarn. Now I am getting this error. My environment information is: Node: v8.12.0 NPM: 6.4.1 Yarn: 1.10.1 OS: Windows 10 PS C:\Users\mdbel\Desktop\Project\redux> npx create-react-app learnredux Creating a new React app in C:\Users\mdbel\Desktop\Project\redux\learnredux. Installing packages. This might take a couple of minutes. Installing react, react-dom, and react-scripts... yarn add v1.10.1 [1/4] Resolving packages... [2/4] Fetching packages... error An unexpected

Create React App not installing, showing an error and aborting installation

陌路散爱 提交于 2020-02-28 01:08:27
问题 I Reinstalled Node.js and Yarn. Now I am getting this error. My environment information is: Node: v8.12.0 NPM: 6.4.1 Yarn: 1.10.1 OS: Windows 10 PS C:\Users\mdbel\Desktop\Project\redux> npx create-react-app learnredux Creating a new React app in C:\Users\mdbel\Desktop\Project\redux\learnredux. Installing packages. This might take a couple of minutes. Installing react, react-dom, and react-scripts... yarn add v1.10.1 [1/4] Resolving packages... [2/4] Fetching packages... error An unexpected

How to use yarn workspaces with typescript and out folders?

最后都变了- 提交于 2020-02-27 22:35:04
问题 I'm trying to set up a monorepo using yarn. I'm confused as to how to set up typescript with project references such that things resolve properly. For example, if I have a folder structure like /cmd /client And I want cmd to depend on client I could have: cmd/tsconfig.json : { "compilerOptions": { "types": ["reflect-metadata", "jest"], "experimentalDecorators": true, "emitDecoratorMetadata": true, "moduleResolution": "node", "declaration": true, "importHelpers": true, "composite": true,

How to use yarn workspaces with typescript and out folders?

僤鯓⒐⒋嵵緔 提交于 2020-02-27 22:30:04
问题 I'm trying to set up a monorepo using yarn. I'm confused as to how to set up typescript with project references such that things resolve properly. For example, if I have a folder structure like /cmd /client And I want cmd to depend on client I could have: cmd/tsconfig.json : { "compilerOptions": { "types": ["reflect-metadata", "jest"], "experimentalDecorators": true, "emitDecoratorMetadata": true, "moduleResolution": "node", "declaration": true, "importHelpers": true, "composite": true,

Yarn ERROR: There are no scenarios; must have at least one

时间秒杀一切 提交于 2020-02-27 15:09:48
问题 I tried to install Yarn and when I used the yarn command I got: 00h00m00s 0/0: : ERROR: There are no scenarios; must have at least one. my yarn --version is 0.32 . Why doesn't it work? 回答1: It looks like that I was trying to execute the wrong yarn, because simply running sudo apt install yarn on my Ubuntu 18.04 gave me yarn from cmdtest. So I solved by uninstalling it: sudo apt remove yarn And by installing it as the official website explains, which in my case (Ubuntu 18.04) it was the