mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
130095f76b
Follow up to #31725. I diffed against the Turbopack one to find any unexpected discrepancies. Some parts are forked enough that it's hard to diff but I think I got most of it.
7 lines
194 B
JavaScript
7 lines
194 B
JavaScript
'use strict';
|
|
|
|
throw new Error(
|
|
'The React Server Writer cannot be used outside a react-server environment. ' +
|
|
'You must configure Node.js using the `--conditions react-server` flag.'
|
|
);
|