Open source headless CMS API written using NestJS, that has pre built modules like User Management, Role Management, Permission Management, Email Module, Account Settings, OTP, Throttling, RBAC support, Localization, and many more.
/usr/src/app/node_modules/typeorm-seeding/dist/cli.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15)
at Function.Module._resolveFilename.sharedData.moduleResolveFilenameHook.installedValue [as _resolveFilename] (/usr/src/app/node_modules/@cspotcode/source-map-support/source-map-support.js:679:30)
at Function.Module._load (internal/modules/cjs/loader.js:746:27)
at Module.require (internal/modules/cjs/loader.js:974:19)
at require (internal/modules/cjs/helpers.js:101:18)
at Object. (/usr/src/app/src/database/seeds/create-email-template.seed.ts:4:1)
at Module._compile (internal/modules/cjs/loader.js:1085:14)
at Module.m._compile (/usr/src/app/node_modules/ts-node/src/index.ts:1455:23)
at Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
at Object.require.extensions. [as .ts] (/usr/src/app/node_modules/ts-node/src/index.ts:1458:12) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/usr/src/app/src/database/seeds/create-email-template.seed.ts',
'/usr/src/app/node_modules/typeorm-seeding/dist/importer.js',
'/usr/src/app/node_modules/typeorm-seeding/dist/commands/seed.command.js',
'/usr/src/app/node_modules/typeorm-seeding/dist/cli.js'
]
}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
(base)
To Reproduce
Steps to reproduce the behavior:
1) setup docker-compose up
2) run npm run migrate inside the container (also tried using docker exec)
3) npm run seed
Describe the bug I get the following error when running
npm run seed
✖ Could not import seeders! Error: Cannot find module 'src/config/email-template-data' Require stack:
To Reproduce Steps to reproduce the behavior: 1) setup docker-compose up 2) run
npm run migrate
inside the container (also tried using docker exec) 3) npm run seed