Questions tagged [npm-package]

464 questions
0
votes
0 answers

Need Help To Publish NPM Typescript package

I've published the library but there's a problem. I need to do something like this to access my code: const { default: { getContrast }, } = require('@akashshyam/color-utilities/lib/index'); console.log(getContrast('#ffffff')); There are two…
Akash
  • 762
  • 7
  • 25
0
votes
1 answer

How to hot reload a development package in an Expo app example nested folder?

Is it possible to an Expo app example to load a module located in the parent folder AND to see changes in the example app when i rebuild the package (with tsc -w to rebuild on any saved files)? I precise that the module is not publish on npm…
0
votes
1 answer

Material UI withStyles in an NPM package causes errors when used through npm link

I'm trying to locally build the oodt_fm_plugin NPM package and link it locally to the oodt_opsui_sample_app. However, when I'm trying to do that, the following error is thrown in the browser. Error: Minified React error #321;…
Pavindu
  • 2,684
  • 6
  • 44
  • 77
0
votes
1 answer

npm package installation failed while installing datatables in angular

I am including datatables in my angular application. When I run ng add angular-datatables I get the following error code (please refer the image). error image I am not sure what is causing this error. Please run through the package.json as…
0
votes
1 answer

React native npm package not work with export styles

I create a NPM package for a react-native project. --- MyComponent.tsx --- /styles/MyComponent.style.ts I separated the file component from the style file. But white screen and impossible to operate the application.
HyperNovax
  • 116
  • 2
  • 12
0
votes
1 answer

'window is not defined' error in Nuxt.js when importing a non-vue package such as Flickity - despite using client mode and checking process.client

I have read all the other posts I can find on this topic on Stack overflow (of which there are many). But from what I can gather, they all offer the same potential fixes such as wrapping the code with if(process.client), or wrapping the component…
ToddPadwick
  • 430
  • 1
  • 6
  • 13
0
votes
1 answer

Phone number not getting retained in react-phone-input-2

I'm trying to retain a phone number after button click in react. The package used here is npm react-phone-input-2 import PhoneInput from 'react-phone-input-2'; After entering a phone number, I'm clicking on next which takes to…
skp
  • 43
  • 10
0
votes
1 answer

Including a command from a C library on my npm package

I have a .exe file from a C library that my package depends. My package works fine when the user already have this command included on his PATH. But there is any way of when the user install my package, NPM also install this command from this C…
João Victor
  • 53
  • 1
  • 5
0
votes
0 answers

Confluence page displays error "We couldn't display your content Refresh the page and try again" when try to use myConfluence.content.id.get function

I tryed to use npm package @datafire/confluence to update confluence content by confluence.content.id.put({ but gets error in the confluence page. "We couldn't display your content Refresh the page and try again if the problem persists, contact…
0
votes
1 answer

How to show gif in npm package's readme file?

I have added below line in my Readme file and it works fine on GitHub but the gif is not showing on npm package page. ![@bilal111996/react-range-slider horizontal](https://github.com/bilalyaqoob/react-range-slider/blob/master/horizontal.gif)
Bilal Yaqoob
  • 790
  • 1
  • 10
  • 22
0
votes
1 answer

Google Sheet npm package Update sheet with sorted data (Node.js)

I am getting data from a form on HTTP request and before writing it on the sheet I want to sort the sheet. I have fetched the google sheet rows and sorted them w.r.t date but the issue is I am unable to overwrite the google sheet with the sorted…
0
votes
1 answer

How to merge two npm packages as one

I have created a new npm package. Let's say my new package name is my-package. I need to import bootstrap npm package into my-package. How to import Bootstrap package into my-package? Also I need to change some color variables in bootstrap package…
Andrew
  • 840
  • 3
  • 17
  • 43
0
votes
1 answer

What happens when you try to uninstall a package that doesn't exist in your project?

Rather than typing npm run lint I accidentally wrote npm un lint. I understand that un is a synonym for uninstall, but no package lint ever existed in our package.json. The command line says it's added 5 packages and removed 13. The package.json…
AncientSwordRage
  • 7,086
  • 19
  • 90
  • 173
0
votes
1 answer

Best method of listening to NPM publishing status via GitHub Actions

I have a Lerna mono-repository which runs lerna publish across 23 packages, some private and some public. The GitHub Release/Tag events happen before NPM Publish is completed and so I can't listen to GitHub release events. Instead, I'm looking for…
0
votes
1 answer

What will happen if the "package.json" version is not followed in sequence and the same version is repeated in the history with different code-base?

What will happen if the "package.json" version is not followed in sequence and the same version is repeated in the history with different code-base? Let us suppose: Project-XYZ package.json version 1.0.0 is published with the changes in the files…
kavigun
  • 2,219
  • 2
  • 14
  • 33