All Questions
Tagged with npm typescript
2,687
questions
-1
votes
0
answers
16
views
How to submit anything through npx command [closed]
I have made some projects in TypeScript so now I have to submit it with GitHub link and npx command, the problem is that I don't know how to how to put npx command on the form. For example I have made ...
0
votes
1
answer
82
views
npm build is failing due to lodash
Using
Node: 16.20.2
Angular: CLI 11.2.5
Typescript: 4.1.5
@types/lodash: 4.14.177
npm build started failing with below exception
Error: node modules/@types/lodash/common/object.d.ts:1026:46 error ...
0
votes
1
answer
31
views
How can I improve on reading large codebases? [closed]
I've been programming for a bit now I'm not that new but sometimes I cant seem to understand code that I read there isn't anything that specific but, for context I have only created web apps never ...
1
vote
0
answers
15
views
Global installation of my cli tool does not work
I am trying to publish my cli tool in npm and when I install it globally it does not add the binary command correctly.
It works if I leave the binary in the dist folder but it adds about 80mb to the ...
0
votes
0
answers
35
views
Best way to share typescript definitions in a npm workspace
I have setup a monorepo using npm's workspaces feature. There are right now two separate apps within the repo that both consume an API that lives in a separate repo. I'd really like to share the API's ...
0
votes
0
answers
40
views
Registering automapper-ts in Global Context not working - Angular App Reference undefined
After updating to Angular 18 the node package automapper-ts is no longer working.
When trying to register Automapper in global context, app is undefined, thus the Reference to the Angular App cannot ...
0
votes
0
answers
18
views
DigitalOcean not installing devDependencies in build phase
I'm working on an API with Typescript and expressjs. It was running fine on DigitalOcean till now with the following configs.
{
"name": "i_h",
"version": "1.0.0&...
0
votes
0
answers
23
views
How to publish a simple button.tsx component to JSR?
Today I am testing JSR for the first time. It seems to be simple to publish simple .ts scripts, however if I try to publish a React component like button.tsx, it's not working when I import to my ...
0
votes
0
answers
18
views
Cannot import shared enum type into nestjs project
I am building an app based on npm workspaces. My repo consists of: api (nestjs/mongo), frontend (react-native), and packages that are shared between these two apps. Can someone tell me why I cannot ...
4
votes
5
answers
3k
views
npm run build is failing due to typescript or lodash uncompatibility
typescript version: 4.5.2
lodash version: 4.17.21
npm run build
tsc && react-scripts build
node_modules/@types/lodash/common/object.d.ts:1026:46 - error TS1005: '?' expected.
1026 : ...
0
votes
0
answers
106
views
how to fix these npm install errors
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: @typescript-eslint/[email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/eslint
npm ERR!...
1
vote
1
answer
25
views
TypeScript in VSCode Not Immediately Recognizing Installed Libraries
I've been experiencing an issue with TypeScript within VSCode. Every time I install a new library (via npm install), TypeScript does not seem to immediately recognize the library.
For example, after ...
1
vote
2
answers
45
views
Install a TypeScript package from GitHub repository subfolder
I'm using react-select on my ReactJS module, and I needed to make some changes to fit my needs.
But now, I'm trying to install my own fork using NPM, and it doesn't work.
Error message:
Module not ...
0
votes
0
answers
62
views
JS/TS How to Reuse Code Between Projects?
Maybe there is an approach that I don't know.
I spent a while and tried various methods such as js/ts with npm link, git submodules, tsconfig paths, symlink, npm/pnpm/yaml workspace, npm pack & ...
0
votes
0
answers
57
views
How to import npm created in typescript to html (Chess.js)
I want to import an npm named chess.js created in Typescript to html.
I would also like to ask about the correct placement of files and directories when doing npm related development such as Chess.js.
...