You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] when publishing as a npm package usage gives errors #20476
when i add it as a npm dependency and try to run ng serve i get the followig error
An unhandled exception occurred: Failed to resolve entry for package "@mmos/mmos-jobcenterservice". The package may have incorrect main/module/exports specified in its package.json.
this is my tsconfig.json: /* To learn more about this file see: https://angular.io/config/tsconfig. */ { "compileOnSave": true, "compilerOptions": { "baseUrl": "./src", "outDir": "./dist/out-tsc", "paths": { "@shared/*": ["app/shared/*"], "@modules/*": ["app/modules/*"], "@core/*": ["app/core/*"], }, "forceConsistentCasingInFileNames": true, "esModuleInterop": true, "strict": false, "noImplicitReturns": true, "noFallthroughCasesInSwitch": true, "sourceMap": true, "declaration": false, "experimentalDecorators": true, "moduleResolution": "node", "importHelpers": true, "skipLibCheck": true, "useDefineForClassFields": false }, "angularCompilerOptions": { "enableI18nLegacyMessageIdFormat": false, "strictInjectionParameters": true, "strictInputAccessModifiers": true, "strictTemplates": true } }
and this my tsconfig.app.json:
/* To learn more about this file see: https://angular.io/config/tsconfig. */ { "extends": "./tsconfig.json", "compilerOptions": { "outDir": "./out-tsc/app", "types": [] }, "files": ["src/main.ts", "src/polyfills.ts"], "include": ["src/**/*.d.ts", "node_modules/@mmos/mmos-jobcenterservice/**/*.ts"] }
Activity
Juoper commentedon Mar 3, 2025
you actually have to build it before publishing