typescript-module-resolution Questions
1
I have a module A that gets imported by a module B. Module B has the following tsconfig.json:
{
"compilerOptions": {
"strict": true,
"module": "esnext",
...
Pedro asked 9/8, 2023 at 19:7
1
Solved
I fail to understand why there is both a "module" & "moduleResolution" setting.
I have always thought of a module, as being nothing more than a specification (and/or standar...
Combings asked 13/6, 2022 at 4:9
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
5
Solved
Is it possible to export a simple function from a typescript module?
This isn't compiling for me.
module SayHi {
export function() {
console.log("Hi");
}
}
new SayHi();
This workitem seems t...
Equiprobable asked 27/3, 2013 at 3:39
0
I have 2 TS files then export just functions (no clesses, interfaces, etc), for example:
// the-folder/file1.ts
export function func1() { ... };
// the-folder/file2.ts
export function func2() { .....
Sadfaced asked 26/8, 2021 at 17:51
1
© 2022 - 2024 — McMap. All rights reserved.