Skip to main content

All Questions

Tagged with
1 vote
0 answers
15 views

Facing error in yarn install for isolated-vm on macOS

Trying to build Backstage App on my MacOS, one of its pre requisites is Yarn , But i am unsuccessful in trying to install it. Please help I am encountering an error when running yarn install for a ...
vidhi yadav's user avatar
0 votes
0 answers
24 views

Issues with zxing-js/library and Rollup Build: "this" has been rewritten to "undefined"

I'm new to JavaScript and TypeScript and I'm using the zxing-js/library package in my project. When I try to build my project with Rollup, I'm encountering the following errors: (!) "this" ...
Ophir Yaniv's user avatar
0 votes
0 answers
93 views

Unable to install iohook in my node server (error during installation)

I'm trying to add the ability to detect keypress anywhere on my PC, and I saw about iohook. So I'm installing it with yarn add iohook, though the process always fails because the download link seems ...
Drake's user avatar
  • 73
2 votes
1 answer
2k views

Error when running npm script with Yarn: "ERR spawn EINVAL

I'm encountering an error when trying to run an npm script that involves Yarn. Here's the sequence of events: I've initialized a project with create-react-app. Added the following script to my ...
Pritam Ghosh's user avatar
0 votes
0 answers
34 views

How to solve the Error ”Cannot find package '/progress-rate-calculator/node_modules/casperjs/' imported from /progress-rate-calculator/calculate.js”

I've been creating web scraping slack bot. When I installed casperjs on yarn, then I ran the program below, I got the error below, that can't find package "casperjs" imported from calculate....
Hiroto Takao's user avatar
2 votes
2 answers
84 views

Unable to run yarn clasp login

Unable to run yarn clasp login I am not good at English. Please understand. 8> yarn clasp login yarn run v1.22.22 $ C:\Users\myname\Desktop\個人開発プロジェクト\clasp-240418\node_modules\.bin\clasp ...
Eisuke Kainuma's user avatar
0 votes
1 answer
145 views

yarn ts-node-dev requires defining dependency to src folder

Can you help me understand this behavior and share how would you solve this "properly"? I'm running Node.JS (v20.12.2), Yarn (4.1.1), tsc (5.4.5) and have following goals: Run the app ...
ppavlov's user avatar
  • 127
2 votes
0 answers
31 views

How to find the installed version of a package using yarn classic?

I've this dependency in my package.json: "@babel/core": "7.13.13" I check this is the installed version: yarn list --depth 0 --pattern @babel/core yarn list v1.22.19 └─ @babel/...
Camilo's user avatar
  • 7,013
0 votes
1 answer
4k views

yarn dlx not found. Why?! How to run yarn dlx command?

I installed yarn by brew install yarn i try yarn dlx storybook@latest upgrade result: yarn run v1.22.22 error Command "dlx" not found. info Visit https://yarnpkg.com/en yarn add or yarn ...
Gelloiss's user avatar
  • 142
0 votes
0 answers
28 views

An import works in Code, but does not work in `yarn start`

In MS Code this import is not highlighted as an error: import { keccak256 } from "ethers/lib/utils"; but when I try to yarn start, it produces errors. [1] ✘ [ERROR] Could not resolve "...
porton's user avatar
  • 5,648
1 vote
1 answer
58 views

How can I forbid package contributors from using yarn to install dependencies?

I'm managing a package that recently used yarn for dependency management, but due to various problems I'm moving back to using npm. To help contributors, I want them to see an error if they try to ...
Duncan Thacker's user avatar
1 vote
0 answers
98 views

Uncaught runtime error: null is not an object (evaluating 'dispatcher.useState') when using react component from library with useState

I am trying to break my code into separate packages to modularize my react application; doing so requires me to create react components in a separate the library that manages state using useState. ...
Sean's user avatar
  • 397
0 votes
0 answers
145 views

How to link a package from a monorepo that is using `yarn workspaces`?

I have a monorepo using yarn workspaces. It is actually the repo of redux-toolkit. I made some modifications on the toolkit package and I would like to test it locally with yarn link in another ...
1mplement1t's user avatar
0 votes
0 answers
160 views

How to set ELECTRON_MIRROR in yarn4

An error occurred when I used yarn4 to install Electron in the project. The specific error is as follows: PS D:\code\ali-live-tools> yarn ➤ YN0000: · Yarn 4.0.2 ➤ YN0000: ┌ Resolution step ➤ YN0000:...
王昱旸's user avatar
0 votes
1 answer
167 views

When yarn.lock is removed dependencies are installed as CommonJS, otherwise as ES modules

We're having a problem on a JS project with yarn where if I remove yarn.lock and yarn install then everything works correctly and the dependencies are installed as CommonJS (and if I go to a package ...
Paulo Ricca's user avatar

15 30 50 per page
1
2 3 4 5
43