Questions tagged [yarnpkg-v2]

Use this tag for version specific questions about Yarn version 2.x. Yarn is an open-source JavaScript package manager created by Facebook, Exponent, Google, and Tilde. When using this tag also include the more generic [yarnpkg] tag where possible.

192 questions
0
votes
0 answers

Doing yarn install on a windows machine reverts v2 lockfile to v1

I have two working laptops, one is a mac and one is a windows. If I do a yarn install on mac, it generates a v2 lockfile. If I do a yarn install on windows, it regenrates the lock file into a v1 file. Any ideas to fix this? These are my…
arunmmanoharan
  • 2,535
  • 2
  • 29
  • 60
0
votes
0 answers

Extraneous positional argument error (Yarn) when using JupyterLab

When I run jupyter lab I get Fail to get yarn configuration. Unknown Syntax Error: Extraneous positional argument ("list"). $ yarn config [-v,--verbose] [--why] [--json] This is new to me (I've been using jupyter for years without issues) and…
orome
  • 45,163
  • 57
  • 202
  • 418
0
votes
0 answers

Substitute for 'yarn list' in Yarn Modern?

Is there a substitute or equivalent command for Yarn Classic's yarn list in Yarn Modern? For example, how would I do the following? yarn list --depth=0 --prod --long
orome
  • 45,163
  • 57
  • 202
  • 418
0
votes
1 answer

Compatibility issues Node and Strapi4

allow me to walk you through some problems I'm encountering when setting up Gatsby with Strapi. Hopefully, somebody can provide me with a solution. Whenever I use the following command yarn create strapi-starter strapi-test gatsby-blog I get the…
MakMao
  • 42
  • 5
0
votes
1 answer

yarn install within Docker Container giving "self signed certificate in certificate chain"

To get docker and yarn working on my corporate network, I needed to add a CA certificate to trust store (for docker) and set NODE_EXTRA_CA_CERTS for yarn (see here). The Dockerfile for my react application includes yarn install && yarn run build…
cpage
  • 119
  • 6
  • 27
0
votes
1 answer

command not found: react-scripts (PS: yarn2(berry) workspaces)

Working on a yarn2 powered monorepo with two workspaces common and app. I've declared typescript and react-scripts as devDependencies in root's package.json ; and declared typescript and react-scripts as peerDependencies in app's…
D.B.K
  • 410
  • 2
  • 15
0
votes
1 answer

How to keep workspace:* version specifications when running 'lerna version'

In a given JS monorepo, sub-packages that depend on each other declare this dependency in their package.json files as "@foo/bar": "workspace:*", "@foo/qux": "workspace:*", ... However, when running lerna version 1.2.3, Lerna rewrites these…
P Varga
  • 19,174
  • 12
  • 70
  • 108
0
votes
1 answer

Hot reload developing Greasemonkey userscript

I'm trying to make a userscript for script runner like (Tamper|Grease)monkey - that adds a script to page of specified URL. Also I work with React, typescript etc. in other projects. I wonder if it's possible to use Typescript to develop these…
sjiamnocna
  • 167
  • 1
  • 11
0
votes
1 answer

How to configure Yarn 2+ to load scope packages from private and public registry

We are migrating from Yarn 1+ to Yarn 2+ (3.2.1) to manage our project dependencies. Most of our private packages are in github but couple of open-sourceed packages are in npm. When we migrate to Yarn 2+, we created .yarnrc.yml file to list the…
metasync
  • 338
  • 1
  • 10
0
votes
1 answer

Yarn berry workspace command not available at root level

I have a working monorepo(yarn v1) with lot of workspaces(small example below). I'm working on upgrading yarn to Yarn@3 berry. I'm not able to access "Client" package .bin scripts from monorepo root, giving me this error "Usage Error: Couldn't find…
user6481062
  • 393
  • 1
  • 4
  • 17
0
votes
1 answer

Error when trying to run application with babel-plugin-relay and Webpack 5

I'm having a hard time to get Relay working within my monorepo. I have set everything up with Yarn workspaces (version berry) and Webpack 5. When I'm trying to run one of my apps, I get the error: MacroError: The macro you imported from "undefined"…
Flo Ragossnig
  • 1,341
  • 14
  • 38
0
votes
2 answers

How to import TomSelect in App.js to avoid browser error?

I'm working on a symfony 5.4 application that uses webpack / encore. I want to use the tomselect javascript plugin. i installed it with yarn and want to import it somehow in app.js but it doesn't work. I tryed this ways in app.js: TomSelect =…
0
votes
1 answer

How can I upgrade ansi-html from 0.0.7 to 0.0.8?

I have a maven application which uses ReactJS for the front-end and it is using ansi-html:0.0.7 currently. This led to vulnerability alert by GitHub dependabot and it asks me to upgrade to version @^0.0.8. Usually when I need to upgrade something, I…
C Puneeth
  • 61
  • 10
0
votes
1 answer

create-react-app error while using yarn 3

I'm using yarn 3.2.0(latest) and node 17.6.0(latest) As instructed in CRA documentation I ran yarn create react-app myapp. It completed installation and was able to start the app using yarn start. However after making changes to the App , I always…
RHOOPH
  • 94
  • 1
  • 5
0
votes
0 answers

react npm start / yarn start not updating. I have to start and stop

I have recently stumbled upon this exploring this boilerplate. I believe it's a bit abandoned now, but figured i'd explore it. https://github.com/react-boilerplate/react-boilerplate Currently if i update the global-css file it appears to update…