Skip to content

For an overview of the plugin and setup instructions, see the @nx/remix introduction.

The @nx/remix plugin provides various migrations to help you migrate to newer versions of remix projects within your Nx workspace. Below is a complete reference for all available migrations.

Version: 24.0.0-beta.0

Convert legacy Remix executors to inferred tasks. Remix v2 remains supported until Nx 25.

Version: 24.0.0-beta.0

Migrate Remix v2 applications to React Router v7 with @nx/react, including Nx configuration and validation.

update-24-0-0-register-typescript-plugin-for-typecheck

Section titled “update-24-0-0-register-typescript-plugin-for-typecheck”

Version: 24.0.0-beta.3

Register @nx/js/typescript with its typecheck target in workspaces that use @nx/remix/plugin without it, and remove the typecheckTargetName option from @nx/remix/plugin, since @nx/remix/plugin no longer infers typecheck targets.

Register @nx/js/typescript for typecheck targets

Section titled “Register @nx/js/typescript for typecheck targets”

@nx/remix/plugin no longer infers a typecheck target in any setup, and @nx/js/typescript provides it instead. This migration registers @nx/js/typescript with only its typecheck target when the workspace uses @nx/remix/plugin and doesn’t register @nx/js/typescript yet, so your projects keep a typecheck target.

The new registration is added before the framework plugin and reuses its typecheckTargetName, and the migration then removes that option from @nx/remix/plugin. Registrations with typecheckTargetName: false have the option removed without registering @nx/js/typescript.

nx.json
{
"plugins": [
{
"plugin": "@nx/remix/plugin",
"options": {
"buildTargetName": "build",
"typecheckTargetName": "typecheck"
}
}
]
}
nx.json
{
"plugins": [
{
"plugin": "@nx/js/typescript",
"options": { "typecheck": { "targetName": "typecheck" } }
},
{
"plugin": "@nx/remix/plugin",
"options": { "buildTargetName": "build" }
}
]
}

Version: 23.1.0-beta.0

Remove the unused @remix-run/eslint-config dependency (ESLint v8 only) that earlier Nx versions added but never wired into the generated lint setup.

update-23-0-0-migrate-create-nodes-v2-import

Section titled “update-23-0-0-migrate-create-nodes-v2-import”

Version: 23.0.0-beta.24

Rename imports of createNodesV2 from @nx/remix/plugin to the canonical createNodes export.

Rename createNodesV2 imports to createNodes

Section titled “Rename createNodesV2 imports to createNodes”

@nx/remix renamed its primary inferred-plugin export from createNodesV2 to createNodes. The createNodesV2 name is preserved as a deprecated alias for now, but new code should use createNodes.

This migration scans every .ts, .tsx, .cts, and .mts file in your workspace and rewrites named imports and re-exports of createNodesV2 from @nx/remix/plugin to createNodes.

import { createNodesV2 } from '@nx/remix/plugin';
import { createNodes } from '@nx/remix/plugin';

Aliases are preserved (createNodesV2 as cn becomes createNodes as cn), and if a file already imports both names ({ createNodes, createNodesV2 }) the redundant binding is dropped.

Only static import/export named bindings from @nx/remix/plugin are rewritten. Namespace imports, dynamic import(...), require(...) destructuring, and property access such as plugin.createNodesV2 are left untouched — they keep working through the createNodesV2 runtime alias. Update those by hand if you want to drop the deprecated name everywhere.

Version: 22.3.4-beta.0

The following packages will be updated:

NameVersionAlways add to package.json
@remix-run/node2.17.3Added if not installed
@remix-run/react2.17.3Added if not installed
@remix-run/serve2.17.3Added if not installed
@remix-run/dev2.17.3Added if not installed
@remix-run/css-bundle2.17.3Added if not installed
@remix-run/eslint-config2.17.3Updated only
@remix-run/server-runtime2.17.3Updated only
@remix-run/testing2.17.3Updated only
@remix-run/express2.17.3Updated only
@remix-run/cloudflare2.17.3Updated only
@remix-run/cloudflare-pages2.17.3Updated only
@remix-run/cloudflare-workers2.17.3Updated only
@remix-run/architect2.17.3Updated only
@remix-run/deno2.17.3Updated only
@remix-run/route-config2.17.3Updated only
@remix-run/fs-routes2.17.3Updated only