Closed bmtheo closed 2 years ago
After the move of the testing project, the package ngx-logger fails to compile when imported in other projects
Errors :
./node_modules/ngx-logger/fesm2020/ngx-logger.mjs:10:0-85 - Error: Module not found: Error: Can't resolve 'src/lib/types/logger-level.enum' in 'D:\Github\house-maintainer\app\node_modules\ngx-logger\fesm2020' ./node_modules/ngx-logger/fesm2020/ngx-logger.mjs:11:0-86 - Error: Module not found: Error: Can't resolve 'src/lib/config/iconfig' in 'D:\Github\house-maintainer\app\node_modules\ngx-logger\fesm2020' ./node_modules/ngx-logger/fesm2020/ngx-logger.mjs:12:0-131 - Error: Module not found: Error: Can't resolve 'src/lib/config/iconfig-engine-factory' in 'D:\Github\house-maintainer\app\node_modules\ngx-logger\fesm2020' ./node_modules/ngx-logger/fesm2020/ngx-logger.mjs:13:0-99 - Error: Module not found: Error: Can't resolve 'src/lib/custom-logger.service' in 'D:\Github\house-maintainer\app\node_modules\ngx-logger\fesm2020' ./node_modules/ngx-logger/fesm2020/ngx-logger.mjs:14:0-71 - Error: Module not found: Error: Can't resolve 'src/lib/logger.module' in 'D:\Github\house-maintainer\app\node_modules\ngx-logger\fesm2020' ./node_modules/ngx-logger/fesm2020/ngx-logger.mjs:15:0-66 - Error: Module not found: Error: Can't resolve 'src/lib/logger.service' in 'D:\Github\house-maintainer\app\node_modules\ngx-logger\fesm2020' ./node_modules/ngx-logger/fesm2020/ngx-logger.mjs:16:0-110 - Error: Module not found: Error: Can't resolve 'src/lib/mapper/imapper.service' in 'D:\Github\house-maintainer\app\node_modules\ngx-logger\fesm2020' ./node_modules/ngx-logger/fesm2020/ngx-logger.mjs:17:0-118 - Error: Module not found: Error: Can't resolve 'src/lib/metadata/imetadata.service' in 'D:\Github\house-maintainer\app\node_modules\ngx-logger\fesm2020' ./node_modules/ngx-logger/fesm2020/ngx-logger.mjs:18:0-106 - Error: Module not found: Error: Can't resolve 'src/lib/rules/irules.service' in 'D:\Github\house-maintainer\app\node_modules\ngx-logger\fesm2020' ./node_modules/ngx-logger/fesm2020/ngx-logger.mjs:19:0-110 - Error: Module not found: Error: Can't resolve 'src/lib/server/iserver.service' in 'D:\Github\house-maintainer\app\node_modules\ngx-logger\fesm2020' ./node_modules/ngx-logger/fesm2020/ngx-logger.mjs:20:0-110 - Error: Module not found: Error: Can't resolve 'src/lib/writer/iwriter.service' in 'D:\Github\house-maintainer\app\node_modules\ngx-logger\fesm2020' Error: node_modules/ngx-logger/lib/testing/config-engine-factory.mock.d.ts:1:34 - error TS2307: Cannot find module 'src/lib/config/iconfig' or its corresponding type declarations. 1 import { INGXLoggerConfig } from 'src/lib/config/iconfig'; ~~~~~~~~~~~~~~~~~~~~~~~~ Error: node_modules/ngx-logger/lib/testing/config-engine-factory.mock.d.ts:2:40 - error TS2307: Cannot find module 'src/lib/config/iconfig-engine' or its corresponding type declarations. 2 import { INGXLoggerConfigEngine } from 'src/lib/config/iconfig-engine'; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: node_modules/ngx-logger/lib/testing/config-engine-factory.mock.d.ts:3:47 - error TS2307: Cannot find module 'src/lib/config/iconfig-engine-factory' or its corresponding type declarations. 3 import { INGXLoggerConfigEngineFactory } from 'src/lib/config/iconfig-engine-factory'; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: node_modules/ngx-logger/lib/testing/config-engine.mock.d.ts:1:34 - error TS2307: Cannot find module 'src/lib/config/iconfig' or its corresponding type declarations. 1 import { INGXLoggerConfig } from 'src/lib/config/iconfig'; ~~~~~~~~~~~~~~~~~~~~~~~~ Error: node_modules/ngx-logger/lib/testing/config-engine.mock.d.ts:2:40 - error TS2307: Cannot find module 'src/lib/config/iconfig-engine' or its corresponding type declarations. 2 import { INGXLoggerConfigEngine } from 'src/lib/config/iconfig-engine'; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: node_modules/ngx-logger/lib/testing/config-engine.mock.d.ts:3:32 - error TS2307: Cannot find module 'src/lib/types/logger-level.enum' or its corresponding type declarations. 3 import { NgxLoggerLevel } from 'src/lib/types/logger-level.enum'; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: node_modules/ngx-logger/lib/testing/logger-testing.module.d.ts:2:21 - error TS2307: Cannot find module 'src/lib/logger.module' or its corresponding type declarations. 2 import * as i1 from "src/lib/logger.module"; ~~~~~~~~~~~~~~~~~~~~~~~ Error: node_modules/ngx-logger/lib/testing/logger.service.mock.d.ts:2:34 - error TS2307: Cannot find module 'src/lib/config/iconfig' or its corresponding type declarations. m2 import { INGXLoggerConfig } from 'src/lib/config/iconfig'; ~~~~~~~~~~~~~~~~~~~~~~~~ Error: node_modules/ngx-logger/lib/testing/logger.service.mock.d.ts:3:35 - error TS2307: Cannot find module 'src/lib/monitor/ilogger-monitor' or its corresponding type declarations. 3 import { INGXLoggerMonitor } from 'src/lib/monitor/ilogger-monitor'; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: node_modules/ngx-logger/lib/testing/logger.service.mock.d.ts:4:32 - error TS2307: Cannot find module 'src/lib/types/logger-level.enum' or its corresponding type declarations. 4 import { NgxLoggerLevel } from 'src/lib/types/logger-level.enum'; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: node_modules/ngx-logger/lib/testing/mapper.service.mock.d.ts:2:34 - error TS2307: Cannot find module 'src/lib/config/iconfig' or its corresponding type declarations. 2 import { INGXLoggerConfig } from 'src/lib/config/iconfig'; ~~~~~~~~~~~~~~~~~~~~~~~~ Error: node_modules/ngx-logger/lib/testing/mapper.service.mock.d.ts:3:39 - error TS2307: Cannot find module 'src/lib/mapper/ilog-position' or its corresponding type declarations. 3 import { INGXLoggerLogPosition } from 'src/lib/mapper/ilog-position'; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: node_modules/ngx-logger/lib/testing/mapper.service.mock.d.ts:4:41 - error TS2307: Cannot find module 'src/lib/mapper/imapper.service' or its corresponding type declarations. 4 import { INGXLoggerMapperService } from 'src/lib/mapper/imapper.service'; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: node_modules/ngx-logger/lib/testing/mapper.service.mock.d.ts:5:36 - error TS2307: Cannot find module 'src/lib/metadata/imetadata' or its corresponding type declarations. 5 import { INGXLoggerMetadata } from 'src/lib/metadata/imetadata'; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: node_modules/ngx-logger/lib/testing/metadata.service.mock.d.ts:1:34 - error TS2307: Cannot find module 'src/lib/config/iconfig' or its corresponding type declarations. 1 import { INGXLoggerConfig } from 'src/lib/config/iconfig'; ~~~~~~~~~~~~~~~~~~~~~~~~ Error: node_modules/ngx-logger/lib/testing/metadata.service.mock.d.ts:2:36 - error TS2307: Cannot find module 'src/lib/metadata/imetadata' or its corresponding type declarations. 2 import { INGXLoggerMetadata } from 'src/lib/metadata/imetadata'; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: node_modules/ngx-logger/lib/testing/metadata.service.mock.d.ts:3:43 - error TS2307: Cannot find module 'src/lib/metadata/imetadata.service' or its corresponding type declarations. 3 import { INGXLoggerMetadataService } from 'src/lib/metadata/imetadata.service'; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: node_modules/ngx-logger/lib/testing/metadata.service.mock.d.ts:4:32 - error TS2307: Cannot find module 'src/lib/types/logger-level.enum' or its corresponding type declarations. 4 import { NgxLoggerLevel } from 'src/lib/types/logger-level.enum'; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: node_modules/ngx-logger/lib/testing/rules.service.mock.d.ts:1:34 - error TS2307: Cannot find module 'src/lib/config/iconfig' or its corresponding type declarations. 1 import { INGXLoggerConfig } from 'src/lib/config/iconfig'; ~~~~~~~~~~~~~~~~~~~~~~~~ Error: node_modules/ngx-logger/lib/testing/rules.service.mock.d.ts:2:40 - error TS2307: Cannot find module 'src/lib/rules/irules.service' or its corresponding type declarations. 2 import { INGXLoggerRulesService } from 'src/lib/rules/irules.service'; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: node_modules/ngx-logger/lib/testing/rules.service.mock.d.ts:3:32 - error TS2307: Cannot find module 'src/lib/types/logger-level.enum' or its corresponding type declarations. 3 import { NgxLoggerLevel } from 'src/lib/types/logger-level.enum'; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: node_modules/ngx-logger/lib/testing/server.service.mock.d.ts:1:34 - error TS2307: Cannot find module 'src/lib/config/iconfig' or its corresponding type declarations. 1 import { INGXLoggerConfig } from 'src/lib/config/iconfig'; ~~~~~~~~~~~~~~~~~~~~~~~~ Error: node_modules/ngx-logger/lib/testing/server.service.mock.d.ts:2:36 - 91merror TS2307: Cannot find module 'src/lib/metadata/imetadata' or its corresponding type declarations. 2 import { INGXLoggerMetadata } from 'src/lib/metadata/imetadata'; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: node_modules/ngx-logger/lib/testing/server.service.mock.d.ts:3:41 - error TS2307: Cannot find module 'src/lib/server/iserver.service' or its corresponding type declarations. 3 import { INGXLoggerServerService } from 'src/lib/server/iserver.service'; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ × Failed to compile.
If you have this error, please use v5.0.6+ thx
After the move of the testing project, the package ngx-logger fails to compile when imported in other projects
Errors :