require('next/root-params') outside the compiler throws a placeholder error
@alandev03▲ 0 net votes
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.