Questions tagged [npm-package]
The npm-package tag has no usage guidance.
npm-package
488
questions
0
votes
0
answers
7
views
SyntaxError: The requested module '/node_modules/prop-types/index.js?v=61a765a5' does not provide an export named 'default' (at index.jsx:3:8)
I'm creating a Node module that uses PropTypes, but, when I install and use the module, in the browser console it says this: SyntaxError: The requested module '/node_modules/prop-types/index.js?v=...
0
votes
0
answers
14
views
NextJS 14 App Page Freezing UI using own custom developed NPM Packages in ReactJS using ViteJS
I have nextjs 14 app using mui, I have created my own npm packages for it's components in reactjs using vitejs, that is running perfectly fine.
Problem:
The issue I'm facing is that when i open ...
1
vote
0
answers
13
views
Nexus version upgrade casuing the whole scope go corrupt - missing metadata of the scope/package
If I deploy a version 1.0.0 it gets deployed and works fine. The below link gives all the metadata which is used to download the package.
http://nexus/repository/my-nexus-repository/@my-scope%...
0
votes
0
answers
23
views
npm dependencies from private repository
I'm trying to use a package I've created in my vue3 application; the package is hosted in a private repository;
in particular the package uses json-editor-vue 0.15.1 that depends on vanilla-jsoneditor ...
0
votes
1
answer
30
views
Difference between aws-cdk and aws-cdk-lib packages
In the package.json of my application I see two different packages named aws-cdk and aws-cdk-lib. What is the difference between both of them?
-1
votes
0
answers
23
views
How to create private npm package using npm pack?
I am trying to implement a react native application, which will have two parts main module and sub-module. Now for the sub-module part of the react-native application, which needs to be developed ...
0
votes
0
answers
15
views
Unable to publish dependencies to my private repository
I am unfamliar with npm packages and node. I have a package.json file with a package with many dependencies. A node_modules dir in the same dir contains all the modules. When attempting to publish to ...
0
votes
2
answers
51
views
TS2339: Property 'scope' does not exist on type 'JwtPayload'
I'm encountering an error in IntelliJ when trying to use decodedJwt.scope.
The error message is: Property 'scope' does not exist on type 'JwtPayload'.
The only suggestions IntelliJ provides are: sub, ...
0
votes
2
answers
27
views
Why is TypeScript not finding my own package?
I created a fork of another package and published it under a unique, new name:
https://www.npmjs.com/package/feed-media-fork
I tagged a new version, created a release on github and yarn add feed-media-...
2
votes
0
answers
26
views
npm publish Bad Request (400) child "params" fails
Trying to publish an unscoped package, doing everything that's in the docs
npm ERR! 400 Bad Request - PUT https://registry.npmjs.org/packagename - child "params" fails because ["params&...
1
vote
1
answer
36
views
node-genius-lyrics: await is only valid in async functions and the top level bodies of modules
I am running the example code given from node-genius-lyrics after installing the package through npm
const Genius = require("genius-lyrics");
const Client = new Genius.Client(myClientID);
...
0
votes
0
answers
15
views
Getting this error "ENOTEEMPTY" even though I tried deleting and reinstalling node_modules several times
first let me give you a little brief about my system. I am using Linux Mint alongside Windows 10 (dual boot), just saying because perhaps it might be relevant with the error I am facing.
Previously I ...
0
votes
0
answers
44
views
ApolloError: Failed to parse URL from /graphql
I have faced following issue during running NextJS project.
This is error screenshot.
Above image is just my error that I have faced over.
I found solution here, but I didn't solve it yet.
I have ...
1
vote
1
answer
115
views
Can't use cli angular cli command since v18 update
I try tο update my angular cli version as usual for test it, but since I did this update I have a node error when I try to use cli command.
All of my other global dependencies seem to work.
I try to ...
0
votes
1
answer
22
views
How can I use an npm package with TypeScript code encapsulated in namespaces?
I am trying to use an npm package that has interfaces encapsulated in namespaces.
I have installed the npm package using:
npm install xserver-code
It has downloaded the following file:
node_modules/...