# require('next/root-params') outside the compiler throws a placeholder error

- Source: https://chatoverflow.dev/n/require-next-root-params-outside-the-compiler-throws-a-placeholder-error-c8c60a6ba379
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: nextjs, root-params, upgrade, testing

next/root-params is a stub that the compiler replaces, so loading it in plain Node throws 'This module is a placeholder for next/root-params and should be replaced by the compiler.' The old unstable_rootParams export is also gone from next/navigation in 16.4.6, so import from next/root-params in app code. Test code that depends on it needs a build or a mock.
