{"id":25767,"library":"isomor-ng-nest","title":"isomor-ng-nest","description":"isomor-ng-nest v2.7.0 is a frontend/backend library for the isomor ecosystem, enabling direct function calls from UI to server without explicit API layers (REST/GraphQL). It uses Babel transpilation to separate frontend and backend code within a single project. Supports Node >=11 and ships TypeScript types. It is part of a set of packages for isomorphic TypeScript development with Angular (ng) and NestJS (nest) integrations. Release cadence is irregular, tied to isomor updates.","status":"active","version":"2.7.0","language":"javascript","source_language":"en","source_url":"https://github.com/apiel/isomor","tags":["javascript","isomorphic","typescript","angular","ng","nest","server"],"install":[{"cmd":"npm install isomor-ng-nest","lang":"bash","label":"npm"},{"cmd":"yarn add isomor-ng-nest","lang":"bash","label":"yarn"},{"cmd":"pnpm add isomor-ng-nest","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Core dependency for isomorphic layer abstraction","package":"isomor","optional":false}],"imports":[{"note":"Default export; no named exports.","wrong":"","symbol":"isomorNgNest","correct":"import isomorNgNest from 'isomor-ng-nest'"},{"note":"Named export for NestJS server integration.","wrong":"import NestServer from 'isomor-ng-nest'","symbol":"NestServer","correct":"import { NestServer } from 'isomor-ng-nest'"},{"note":"Named export for NestJS module configuration.","wrong":"","symbol":"NestModule","correct":"import { NestModule } from 'isomor-ng-nest'"}],"quickstart":{"code":"import isomorNgNest from 'isomor-ng-nest';\n\n// Initialize isomor with NestJS\nconst app = await isomorNgNest({\n  server: {\n    port: 3000,\n    module: AppModule\n  },\n  client: {\n    output: './src/generated-client.ts'\n  }\n});\n\napp.start();","lang":"typescript","description":"Shows how to set up isomor-ng-nest with a NestJS backend and generate client-side code."},"warnings":[{"fix":"npm install isomor@^2.7.0","message":"isomor-ng-nest requires isomor as a peer dependency. Ensure isomor is installed at the same version or compatible.","severity":"gotcha","affected_versions":">=2.0.0"},{"fix":"Replace `new IsomorNgNest()` with the functional `isomorNgNest()` export.","message":"In v2.0.0, the API changed from a class-based to a function-based initialization. Old code using `new IsomorNgNest()` will break.","severity":"breaking","affected_versions":"<2.0.0"},{"fix":"Use the `server` property directly in the config object.","message":"The `NestServer` export is deprecated in favor of inline configuration within `isomorNgNest()`.","severity":"deprecated","affected_versions":">=2.5.0"},{"fix":"Add `\"skipLibCheck\": true` to tsconfig.json","message":"TypeScript strict mode may cause issues with emitted client code due to complex generics. Use `skipLibCheck: true` as workaround.","severity":"gotcha","affected_versions":">=2.0.0"},{"fix":"Upgrade Node.js to v11 or later.","message":"Node.js version >=11 required; earlier versions are not supported and will throw runtime errors.","severity":"breaking","affected_versions":">=2.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run `npm install isomor-ng-nest isomor` and ensure `tsconfig.json` includes `\"esModuleInterop\": true`.","cause":"Missing npm install or TypeScript not resolving the package types.","error":"Cannot find module 'isomor-ng-nest' or its corresponding type declarations."},{"fix":"Use `import isomorNgNest from 'isomor-ng-nest'` (default import).","cause":"Importing as named export instead of default export.","error":"TypeError: isomorNgNest is not a function"},{"fix":"Import or define the NestJS AppModule before using it in the configuration.","cause":"AppModule not imported or defined in the file.","error":"Cannot find name 'AppModule'."},{"fix":"Upgrade Node.js to v11 or higher.","cause":"Running on an older Node.js version.","error":"Error: isomor requires Node >=11"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}