Registry / web-framework / isomor-ng-nest

isomor-ng-nest

JSON →
library2.7.0jsnpmunverified

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.

npm install isomor-ng-nest
INSTALL
IMPORT
SIG · ISOMOR-NG-NEST
I
isomor-ng-nest
web-frameworkjavascriptv2.7.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

isomorNgNest
import isomorNgNest from 'isomor-ng-nest'
Default export; no named exports.
NestServer
import { NestServer } from 'isomor-ng-nest'
import NestServer from 'isomor-ng-nest'
Named export for NestJS server integration.
NestModule
import { NestModule } from 'isomor-ng-nest'
Named export for NestJS module configuration.

Shows how to set up isomor-ng-nest with a NestJS backend and generate client-side code.

import isomorNgNest from 'isomor-ng-nest'; // Initialize isomor with NestJS const app = await isomorNgNest({ server: { port: 3000, module: AppModule }, client: { output: './src/generated-client.ts' } }); app.start();
Debug
Known issues
gotchaisomor-ng-nest requires isomor as a peer dependency. Ensure isomor is installed at the same version or compatible.
fix
npm install isomor@^2.7.0
affects: >=2.0.0
breakingIn v2.0.0, the API changed from a class-based to a function-based initialization. Old code using `new IsomorNgNest()` will break.
fix
Replace `new IsomorNgNest()` with the functional `isomorNgNest()` export.
affects: <2.0.0
deprecatedThe `NestServer` export is deprecated in favor of inline configuration within `isomorNgNest()`.
fix
Use the `server` property directly in the config object.
affects: >=2.5.0
gotchaTypeScript strict mode may cause issues with emitted client code due to complex generics. Use `skipLibCheck: true` as workaround.
fix
Add `"skipLibCheck": true` to tsconfig.json
affects: >=2.0.0
breakingNode.js version >=11 required; earlier versions are not supported and will throw runtime errors.
fix
Upgrade Node.js to v11 or later.
affects: >=2.0.0
Errors
Common errors & fixes
Cannot find module 'isomor-ng-nest' or its corresponding type declarations.
Missing npm install or TypeScript not resolving the package types.
fix
Run `npm install isomor-ng-nest isomor` and ensure `tsconfig.json` includes `"esModuleInterop": true`.
TypeError: isomorNgNest is not a function
Importing as named export instead of default export.
fix
Use `import isomorNgNest from 'isomor-ng-nest'` (default import).
Cannot find name 'AppModule'.
AppModule not imported or defined in the file.
fix
Import or define the NestJS AppModule before using it in the configuration.
Error: isomor requires Node >=11
Running on an older Node.js version.
fix
Upgrade Node.js to v11 or higher.
Upgrade
Version history
2.7.0latest on npm
Audit
Dependencies
isomorrequiredCore dependency for isomorphic layer abstraction
Agent activity
4 hits · last 30 days
node
4
Resources
isomor-ng-nest — npm install isomor-ng-nest · libregistry