npm-package Questions

2

Solved

I downloaded local copy of npm package and extracted it on desktop. Then I used npm install /directory/ to install it. What I noticed is that when I remove desktop directory, app says it can't find...
Blubberhead asked 8/11, 2021 at 10:41

3

Can someone help me with this error SyntaxError: Unexpected token '?' at wrapSafe (internal/modules/cjs/loader.js:915:16) at Module._compile (internal/modules/cjs/loader.js:963:27) at Object.Mod...
Boneyard asked 27/11, 2022 at 14:1

7

I have installed expo-cli and set the env variable. It gives this error: The legacy expo-cli does not support Node +17. Migrate to the versioned Expo CLI (npx expo). Uncaught Error Error: EPERM: op...
Hexapartite asked 1/2, 2023 at 18:8

33

Solved

I've got an ApolloServer project that's giving me trouble, so I thought I might update it and ran into issues when using the latest Babel. My "index.js" is: require('dotenv').config() imp...
Woodson asked 14/10, 2019 at 21:17

2

I have a ReactJS project where I wanted to use a Barcode-Scanner npm module with the name html5-qrcode, but I always get this error: Failed to parse source map from 'C:\...\node_modules\html5-qrcod...
Wendolynwendt asked 5/12, 2022 at 12:23

1

Solved

I have an internal package with about the following structure: myPackage/ |- types/ | |- type1.d.ts | |- type2.d.ts |- src/ | |- someUtilities.ts |- index.ts |- package.json |- tsconfig.json The i...
Expansible asked 20/1, 2023 at 11:58

3

On npm publish following error is thrown. Had worked before. npm ERR! code E404 npm ERR! 404 Not Found - PUT https://registry.npmjs.org/@XYZ - Not found npm ERR! 404 npm ERR! 404 '@[email prot...
Jugglery asked 11/11, 2021 at 7:11

1

Solved

I am having a problem with my react build, maybe related to AWS amplify, but I’m having trouble pinning it down. When it started, I was able to run my program locally without a problem. I uploaded ...

5

Solved

the problem seems to be with mongoose & mongodb packages as it works fine when mongoose.connect('mongodb+srv://mydb:<password>@cluster0.w1opr.mongodb.net/test?retryWrites=true&w=major...
Improvisatory asked 1/9, 2021 at 14:35

1

Solved

Started encountering this issue after pushing changes which has nothing to do with the node_modules or the deployment pipeline. This issue is also seen when trying to rerun an already successful de...
Demolish asked 15/9, 2022 at 9:2

1

Solved

I found out that ngx-perfect-scrollbar has been deprecated. I found out the npm package health analysis says that this package is safe until now but it is not supported anymore. link: https://snyk....

6

Solved

How do you resolve "Cannot use import statement outside a module" from a dependency when the dependency isn't declared as a module? I want to use the validator in Svelte/kit to validate ...
Fairspoken asked 18/6, 2021 at 18:19

1

Solved

I've developed a small Ui component for internal use in a company and published it to npm but when I install that package I only get an index.js file in node_modules folder. I'm not using any packa...
Lackadaisical asked 6/9, 2021 at 14:13

1

Solved

I have a navbar npm package that I import into other projects. It dynamically imports FontAwesome icons based on a JSON config file loaded from a web server at runtime. When I build the navbar pack...
Alethiaaletta asked 14/8, 2019 at 14:8

2

Solved

We are attempting to create a Vue npm package where one component imports another component (a simple example might be - the package contains a generic button component, and a table component that ...
Rattigan asked 11/11, 2020 at 4:42

2

Solved

I am trying to import the js-search npm package to my client .js file. Their docs says to write import * as JsSearch from 'js-search';, however, this gives me a Uncaught TypeError: Failed to resolv...
Fibster asked 19/9, 2020 at 4:20

1

Solved

Background: I'm writing code in node.js, using npm and docker. I'm trying to get my docker file to use cache when I build it so it doesn't take too long. We have a "common" repo that we ...
Jackknife asked 2/9, 2020 at 15:54

0

Environment description: I have to create a react-native component and publish it to npm. In my process I have to planned the executing of unit tests but after many tries I cannot configure jest fo...
Pileus asked 24/8, 2020 at 9:8

2

We have our own npm package and a project that uses it, I want to publish it to a tfs feed - repository and install it from there instead of from a physical file. I published the package to the fe...
Pringle asked 30/6, 2019 at 11:55

1

Solved

Gist I have a monorepo and I am using yarn workspaces and lerna to manage it. I had no issues with it until now. I need to know all the changed packages since the last release. Issue So I run le...
Bihari asked 7/11, 2019 at 16:52

1

Solved

I want to do something like this: Create an npm package. Basically, a common code which I want to use for all of my projects. Which I created. But now What I want is, Every time I commit somethin...
Bronchitis asked 29/5, 2019 at 11:56

1

Solved

I am trying to add Material-Ui React components in my project and I'm confused with these 2 websites / libraries. Material-Ui-Next -> https://material-ui-next.com/ Material-Ui -> http://www.mater...
Barstow asked 21/3, 2018 at 10:29
1

© 2022 - 2024 — McMap. All rights reserved.