tsconfig-paths Questions
8
Solved
I'm running VS Code and I am currently trying to set up some aliases on my typescript project.
My dev setup rest on nodemon and ts-node, the code gets compiled to a dist folder.
So far, I succee...
Campanulate asked 5/2, 2020 at 0:5
3
Solved
I have a project structure like the following:
.
└── my-app/
├── .configs/
│ ├── tsconfig.json
│ ├── webpack.merge.ts
│ ├── webpack.dev.config.ts
│ └── webpack.prod.config.ts
├── node_modules...
Rai asked 2/8, 2021 at 16:32
7
I have typescript and uses the aliases.
Here is part of tsconfig.json
"compilerOptions": {
"baseUrl": "./src",
...
},
By setting the base url, I can change
import User from "src/models/User.m...
Upheaval asked 4/12, 2019 at 15:47
4
I saw some questions about this problem, none of them does not work
I have a nodejs project along with Typescript. I do not like to use a relative path.I get the following error, when I set path in...
Hamachi asked 4/9, 2020 at 16:31
6
I'm trying to map paths in tsconfig.json to get rid of relative paths hell. My React App is based on Create-React-App.
I tried this SO thread and added paths in my tsconfig.json. My tsconfig.json i...
Ideal asked 2/10, 2020 at 14:5
2
I'm trying to run a typescript script with ts-node in CLI, which means I don't have a package.json.
Here's the command I'm trying to run:
npx -p typescript@latest -p ts-node@latest -p @types/node@l...
Fourchette asked 4/7, 2021 at 14:9
1
I have a TypeScript project that I am trying to transpile into executable JavaScript which makes use of path aliases. This is required for the NPM package I am working on.
For example here with imp...
Unloosen asked 29/7, 2022 at 10:2
1
How do you setup paths with typescript to run with ts-node? And later compile paths to absolute paths when compiling?
I have following very minimal structure:
koki.ts:
export const calculate = (a:...
Verve asked 8/6, 2022 at 16:44
1
Solved
Well, the title is pretty auto-explainable: I have set my tsconfig paths so that I can use @configs/logger instead of ../../configs/logger everytime in my APP files. But if I try to use those path ...
Coccidioidomycosis asked 13/7, 2022 at 5:1
1
Solved
Node error Error: Cannot find module 'hello' even though Typescript compiled successfully.
Dir structure (note this is almost identical to tsconfig docs for baseUrl)
main
| src
| ├─ index.ts
| └─ h...
Panta asked 29/4, 2022 at 8:25
0
I have a typescript project that uses commonjs modules, I use ts-node to run it, and tsconfig-paths to resolve tsconfig.compilerOptions.paths at runtime.
now I want my project to migrate to use es ...
Fervency asked 17/1, 2022 at 12:58
1
Solved
I am making a discord bot and I was trying the path aliases feature on typescript. but I somehow keep getting this error when I am using it. I am using NodeJs and using
Here is the error message
Er...
Lavalava asked 29/12, 2021 at 4:15
2
vscode is somehow not honoring my tsconfig.json (for a couple of weeks now, it has been different. eiter my bad or vscode update...)
{
"compileOnSave": false,
"compilerOptions":...
Worl asked 8/11, 2020 at 11:39
0
I am developing a CLI using node, typescript and other packages. The idea is simple, the CLI gives you an initial structure for your node projects (javascript or typescript)
Well, while testing, I ...
Lots asked 16/9, 2020 at 19:59
2
I am trying to set up relative paths for my application running it with tsc-watch. But when I try to access enum in shared folder from feature folder, I get "Error: Cannot find module". Running the...
Schnorkle asked 31/8, 2019 at 9:3
2
Solved
I have a library with a workspace containing two projects, one for the library itself and one for a test application.
├── projects
├── midi-app
└── midi-lib
In the workspace tsconfig.jso...
Ostrander asked 9/7, 2019 at 9:30
1
© 2022 - 2024 — McMap. All rights reserved.