Skip to content

TypeError [ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING]: A dynamic import callback was not specified. #33986

@JoelNieto

Description

@JoelNieto

Current Behavior

In a new created Angular monorepo, using v22.3.3, when trying to add a NestJS backend, I'm getting an error.

Expected Behavior

To create the NestJS app

GitHub Repo

No response

Steps to Reproduce

  1. npx [email protected]
  2. project name
  3. Which starter do you want to use? custom
  4. Which stack do you want to use? angular
  5. Integrated monorepo, or standalone project? integrated
  6. Application name web-app
  7. nx g @nx/nest:app apps/backend --frontendProject web-app

Nx Report

NX   Report complete - copy this into the issue template

Node           : 24.7.0
OS             : darwin-arm64
Native Target  : aarch64-macos
npm            : 11.5.1

nx                     : 22.3.3
@nx/js                 : 22.3.3
@nx/eslint             : 22.3.3
@nx/workspace          : 22.3.3
@nx/angular            : 22.3.3
@nx/jest               : 22.3.3
@nx/devkit             : 22.3.3
@nx/eslint-plugin      : 22.3.3
@nx/module-federation  : 22.3.3
@nx/nest               : 22.3.3
@nx/node               : 22.3.3
@nx/playwright         : 22.3.3
@nx/rspack             : 22.3.3
@nx/web                : 22.3.3
@nx/webpack            : 22.3.3
@nx/docker             : 22.3.3
typescript             : 5.9.3
---------------------------------------
Registered Plugins:
@nx/playwright/plugin
@nx/eslint/plugin
---------------------------------------
Community plugins:
angular-eslint : 21.1.0
---------------------------------------
Cache Usage: 0.00 B / 22.83 GB

Failure Logs

node:internal/modules/esm/utils:283
  throw new ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING();
        ^

TypeError [ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING]: A dynamic import callback was not specified.
    at importModuleDynamicallyCallback (node:internal/modules/esm/utils:283:9)
    at Object.<anonymous> (/Users/joelnieto/Projects/talenttrak/node_modules/prettier/index.cjs:621:23)
    at Module._compile (/opt/homebrew/lib/node_modules/nx/node_modules/v8-compile-cache/v8-compile-cache.js:192:30)
    at Object..js (node:internal/modules/cjs/loader:1871:10)
    at Module.load (node:internal/modules/cjs/loader:1470:32)
    at Module._load (node:internal/modules/cjs/loader:1290:12)
    at TracingChannel.traceSync (node:diagnostics_channel:322:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:238:24)
    at Module.require (node:internal/modules/cjs/loader:1493:12)
    at require (/opt/homebrew/lib/node_modules/nx/node_modules/v8-compile-cache/v8-compile-cache.js:159:20) {
  code: 'ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING'
}

Package Manager Version

npm

Operating System

  • macOS
  • Linux
  • Windows
  • Other (Please specify)

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions