Skip to content
This repository was archived by the owner on Sep 25, 2025. It is now read-only.

fix: module-not-found error for typeorm cli - #326

Merged
Zeko369 merged 1 commit into
freeCodeCamp:masterfrom
phoenisx:fix/module-no-found
Feb 3, 2020
Merged

Zeko369 merged 1 commit into
freeCodeCamp:masterfrom
phoenisx:fix/module-no-found

Conversation

@phoenisx

@phoenisx phoenisx commented Feb 2, 2020

Copy link
Copy Markdown
Contributor
  • I have read Chapter's contributing guidelines.
  • My pull request has a descriptive title (not a vague title like Update README.md).
  • My pull request targets the master branch of Chapter.

Details

I have been facing this issue due to module-alias lib used for typescript project. This lib doesn't work properly with ts-node and typeorm cli. Issue was raised in TypeORM - here typeorm/typeorm#3645

tsconfig-paths solves this issue, by directly aliasing modules from tsconfig.json. This relieves us from maintaining aliases in multiple places (package.json was keeping a duplicate alias map).

Also, jest doesn't need configuration for aliases anymore, as I have updated jest.config.js to get aliases automatically, as mentioned here

@Zeko369
Zeko369 self-requested a review February 3, 2020 10:44
@Zeko369 Zeko369 changed the title [Fix] MODULE_NOT_FOUND error for typeorm cli fix: module-not-found error for typeorm cli Feb 3, 2020
@Zeko369
Zeko369 merged commit 292b1e5 into freeCodeCamp:master Feb 3, 2020
@phoenisx
phoenisx deleted the fix/module-no-found branch February 4, 2020 02:47
@Ryuno-Ki Ryuno-Ki mentioned this pull request Nov 7, 2020
3 tasks done
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants