4,271
questions
0
votes
0
answers
18
views
Tailwind style not applying in Yarn Monorepo re-usable common components
So we trying to integrate tailwind in our existing Yarn Monorepo structure. It's fine with the apps (works as expected), but got stuck with figuring out how re-usable components from @common can get ...
0
votes
0
answers
17
views
yarn installs old version of local package
I have a local package example-0.0.0.tgz and I installed with command yarn add ./local-packages/example-0.0.0.tgz.
Then I uninstalled example package, deleted yarn cache and node-modules. Then I made ...
1
vote
1
answer
23
views
Why 'docusaurus' is not recognized as an internal or external command?
I am trying to run a simple React project
yarn start
yarn run v1.22.22
docusaurus start
'docusaurus' is not recognized as an internal or external command,
operable program or batch file.
error ...
0
votes
0
answers
19
views
Switching Yarn Version
I have yarn 3.6.4 currently enabled on my mac.
I'm trying to change that to 1.22.22 for a certain project I'm working. I'm using the below.
yarn set version 1.22.22
I get this response
➤ YN0000: ...
0
votes
1
answer
22
views
Botpress v12 Dependencies Incompatible with Node Version
I am trying to set up the botpress v12 repo on my local machine.
I am facing issues during dependency resolution
This is my environment
OS: MacOS 15.1
Chip: Apple M2 Pro
Terminal: iTerm2 (arch: arm64)...
0
votes
2
answers
34
views
i couldnt yarn start the project and i get this error
./src/bootstrap.scss (./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-5-1!./node_modules/postcss-loader/src??postcss!./node_modules/resolve-url-loader??ref--6-oneOf-5-3!./node_modules/sass-loader/...
0
votes
1
answer
54
views
Yarn make with electron-forge not working, error on RPM
First of all i'm VERY new to coding and i'm just following and reading documentation
I'm making a bluesky electron app, but when using yarn make or npm run make I get the followed error:
❯ yarn make
...
-1
votes
1
answer
52
views
yarn not found in docker container after successful build
I navigate to root and run docker build frontend which finds a Dockerfile in the /frontend directory. Then I enter the docker container using docker exec frontend-1 sh and once in the container npm, ...
1
vote
0
answers
26
views
How to run a preinstall-like script in Yarn Berry?
I don't need to support this behavior as a library author or anything, but if I wanted to run something in my own project before yarn install, is there really no way to do that anymore since ...
0
votes
0
answers
23
views
DataTables.net version issue
In my current project, i'm using Symfony 7.1 with Webpack encore SF bundle.
I have Webpack 5.95.0.
I'm using Yarn 4.4.0 to manage my js package.
I'm using datatables.net 2.1.8.
After doing lot of test ...
0
votes
1
answer
76
views
How to fix the vulnerability - "Regular Expression Denial of Service (ReDoS) in micromatch"
I am new with JS coding. My website has Next JS framework.
My package.json file looks like the following
dependencies": {
"@azure/communication-email": "1.0.0",
"@...
0
votes
0
answers
52
views
Rails 7 chart.js upgrade from version 2.9.4 to 4.4.4 - Uncaught ReferenceError: Chart is not defined
I am trying to upgrade chart.js from version 2.9.4 to 4.4.4.
Javascript is managed by Yarn tool.
Package.json file
`"chart.js": "^4.4.4",`
Application.rb file had this path for ...
0
votes
0
answers
32
views
React with NPM packages and using their minified version in the final webpack prod build
I have a React project which uses an NPM based library. When producing the production build of the app with webpack the library takes up a large portion of the final bundle size.
For the production ...
1
vote
0
answers
126
views
drizzle-kit not able to find dirzzle-orm on cli
I'm using yarn workspaces to structure a monorepo style project. I recently upgraded to yarn v4 and am running into issues with running drizzle-kit seemingly not able to detect drizzle-rom when run ...
2
votes
2
answers
253
views
Expo EAS build failed suddenly
EAS build for android failing. It was working fine. But suddenly failed to build while yarn install dependencies
NB: No changes were made after the successful build-in of package.json. The project ...
0
votes
0
answers
21
views
Yarn not found after switching npm version with nvm
I open a terminal and I run:
nvm list
And I get:
v12.8.0
-> v21.7.1
This means that I have 2 versions installed but the active one is v21.7.1
If I run: yarn I get:
yarn install ...
0
votes
1
answer
29
views
Running eslint npm script with yarn not working
I have set up an ESLint script in package.json that should check for linting errors:
"lint": "eslint ./src/**/*.{js,ts,tsx} package.json",
The problem I have is that when I ...
0
votes
1
answer
232
views
yarn install: error [email protected]: The engine "node" is incompatible with this module. Expected version "20 || >=22". Got "16.20.2"
Two months ago all was OK, but now I get an error when tried to run yarn install:
verbose 33.786740568 Performing "GET" request to "https://registry.yarnpkg.com/os-homedir".
...
0
votes
0
answers
22
views
fossa-cli error: An exception occurred:RTextException PathPiece ""
I am running fossa-cli on a react app - and I keep getting this error at the end and I don't understand what it means.
Error: An exception occurred:RTextException PathPiece ""
I have the ...
0
votes
0
answers
114
views
Getting error with Sharp/Libvips when installing node modules in a next application
yarn install
yarn install v1.22.22
info No lockfile found.
[1/4] 🔍 Resolving packages...
warning eslint > @humanwhocodes/[email protected]: Use @eslint/config-array instead
warning ...
0
votes
0
answers
11
views
Changes to dist Folder Not Reflecting in Custom vue-business-hours Package After Modifying Source Code
I'm working in a project with vue and docker and the scripts in package.json has:
"scripts": {
"lint": "eslint --ext .js,.vue ./",
"test": "echo \&...
0
votes
1
answer
204
views
Upgrading multistage docker from yarn 1 to yarn modern
I have a Dockerfile written using old yarn
FROM node:20-alpine AS dependencies
WORKDIR /app
COPY package.json ./
COPY yarn.lock ./
RUN yarn install --production --frozen-lockfile && yarn ...
0
votes
0
answers
109
views
Caching node_modules of yarn in GitLab CI
stages:
- install
- build
- test
variables:
FF_USE_FAST_ZIP: 'true'
ARTIFACT_COMPRESSION_LEVEL: 'fast'
CACHE_COMPRESSION_LEVEL: 'fast'
cache:
paths:
- .yarn
- node_modules
...
0
votes
0
answers
25
views
Yarn resolution for loader-utils not processing
I have a react project with a dependency on [email protected]. Snyk flags a transitive vulnerability issue with [email protected] so I've added a yarn resolution to get the correct version. However,...
1
vote
1
answer
271
views
yarn command got stuck when running
I’m trying to run a project locally on my macOS using yarn cross-env NODE_ENV=development nest start --watch, but the command stays stuck without output or progress.
Environment:
macOS version: ...
0
votes
1
answer
156
views
RustDesk & Flutter web build errors | .dart files causing errors when attempting a web build
I'm having a lot of issues with the "flutter build web --release" command. This is for making a web build so that I may utilize the RustDesk web client services. I've been having a lot of ...
0
votes
0
answers
25
views
node-gyp Build Failing using Maven
I am trying to install an AngularJS based project using maven, but somehow its failing everytime. I can understand where the problem is, it is the proxy. But i don't know how to fix the issue. I just ...
0
votes
1
answer
288
views
Cannot run React in docker with Yarn 4 because of missing `react-scripts` packages, but works well natively (without docker)
I create a new ReactTs project from scratch, with Yarn 4.4.1 (Just started using yarn 4).
I created the project with the Create React App Client:
# In my /frontend directory
yarn create react-app . --...
0
votes
0
answers
8
views
Adding an environmental variable at the start of a package.json script prevents cd ./android from working - APP_ENV=production cd ./android
So I just noticed that if I have the following script in my package.json file:
"android:build:release": "APP_ENV=production cd ./android && ./gradlew clean ...
2
votes
3
answers
397
views
yarn install failing with "Integrity check failed ...", but checksums and hashes are correct
When I run yarn install on my project, I get:
$ yarn install
yarn install v1.22.22
[1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...
error https://registry.yarnpkg.com/d3-color/-/d3-color-...
0
votes
1
answer
29
views
How to yarn start nextjs application on specific port with pm2?
How to yarn start nextjs application on specific port with pm2 process manager?
I googled for answer and found wrong suggestions
On production server I want to configure fail-over load balancer to ...
0
votes
0
answers
69
views
How to extend eslint config when using yarn workspaces
I have yarn workspaces in my repository in packages directory with 3 packages: shared and app-1, app-2.
In shared package i have .eslintrc.js config file with following rules:
module.exports = {
...
-1
votes
2
answers
64
views
How can I set a maximum number of errors in tsc?
I have a legacy project we are trying to move over to typescript. tsc --noEmit finds 85 errors and exits 2.
I want to do like tsc --noEmit --maxErrors=85 and have it exit 0. Then as we fix errors, ...
0
votes
0
answers
13
views
Not expected yarn.lock content changed after yarn install
Check details in the img bellow. The left is master branch and right is my local dev branch.
The difference is not expect since changes in package.json does not contain those npm packages.
Why cause ...
-1
votes
2
answers
57
views
Problem with Django and Python (the current path api/ did not match of these)
I am trying to set up a school journal based on Django and Python, but I can't do it because of a 404 page with a problem in the title.then Python part is backend and Node + Yarn + HTML is the ...
0
votes
1
answer
465
views
pnpm monorepo error with peer dependencies "Rollup failed to resolve import"
I have a monorepo project using turborepo. I was using yarn version 4 and everything was working perfectly fine but then I had the brilliant idea of changing from yarn to pnpm since it was recommended ...
0
votes
0
answers
25
views
Mono repo add cli binary of local package to node_modules after building/transpiling
In our mono repo we have a package with a CLI written in Typescript and gets built/transpiled for production packaging. As the package.json bin targets the dist folder, which gets created after ...
0
votes
0
answers
34
views
yarn link is causing issues
I maintain a library that's used by a project I'm working on. To develop a new feature in the library, I set up a symlink using yarn link, which connected the library's source to the project's ...
0
votes
0
answers
66
views
yarn publish does not work with new version of _auth (.npmrc)
We had this in .npmrc file in Home directory
_auth=XXXXXXXXXXXXXX
and publishing our internal package using yarn publish worked fine. Yarn version 1.22.
But now starting from npm 8 it seems they ...
0
votes
0
answers
55
views
Running application as application user
I notice that most of the React/Next.js/Yarn examples have you install everything to run as root, but that most people recommend running the app as an application user so that the application does not ...
0
votes
1
answer
325
views
Issues Installing Package from Private Azure DevOps Registry with Yarn
I'm trying to install a package from a private Azure DevOps registry using Yarn. I have configured my .yarnrc.yml file as follows:
npmScopes:
mycompany:
npmRegistryServer: https://pkgs.dev.azure....
0
votes
1
answer
72
views
More verbose output of native module build phase during yarn install
My yarn install --frozen-lockfile --verbose is getting hung at what seems to be the native module/gyp build phase and I can't figure out why.
I've tried export npm_config_loglevel=verbose before ...
1
vote
1
answer
37
views
Yarn PM not working in Windows when the User folder(UserProfile env var) has space in folder name or path
As stated in title, the Yarn PM(package manager), that I just installed in my system(Windows 11 64Bit) doesn't work if there's space(s) in my UserProfile folder path.
My User folder name is "...
8
votes
1
answer
2k
views
How to disable auto-setting of `packageManager` when corepack is enabled
In Node.js, when corepack is enabled, any yarn, pnpm or npm command will auto-set packageManager field in package.json.
This is a breaking change for some projects, since having packageManager means ...
2
votes
3
answers
865
views
Yarn Build Error: TS2305: Module '"web-vitals"' has no exported member 'ReportHandler'
I'm using Yarn as part of an intro to React Testing course through Udemy.
I am getting this error when executing yarn build:
$ yarn build
yarn run v1.22.22
$ react-scripts build
Creating an optimized ...
1
vote
0
answers
357
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 ...
1
vote
1
answer
591
views
Cannot create property 'lastUpdateCheck' on string 'lastUpdateCheck 1713521810483 nodeLinker node-modules ces nodeLinker node-modules'
Got this error after installing the node_modules.
TypeError: Cannot create property 'lastUpdateCheck' on string 'lastUpdateCheck 1713521810483 nodeLinker node-modules ces nodeLinker node-modules'
...
2
votes
1
answer
440
views
npx hanging during initialization of react, expo, and next app
I am currently experiencing an issue where the following commands (and potentially more) hang indefinitely when trying to initialize a project:
npx create-react-app
npx create-expo-app
npx create-...
0
votes
0
answers
63
views
Yarn workspaces - "unknown workspace" error
I have a repo set up to use yarn workspaces. However, when I try to run a script from workspace a, I get an error: Unknown workspace "a".
I also cannot run the script directly from folder a.
...
0
votes
0
answers
45
views
Too many package installation in Expo React Native
This is my current package.json and I am installing packages using yarn. Although I only have these dependencies, it installs over 1000 packages and frequently fails to install and gives
➤ YN0001: │ ...