UNPKG

server-cli-only

Version:

The server-cli-only package is designed to restrict the import of modules exclusively to React Server Components or scripts running on the CLI.

6 lines (5 loc) 280 B
throw new Error( "[server-cli-only:error.browser.js]: Module import fails for your safety. " + 'You are trying to run it in a "browser" runtime (probably a React client component). ' + "However, the import of this module is only allowed in server and edge runtimes." );