{"record":{"id":"467d7c756b0b89fd","repo":"facebook/react","slug":"use-react-server-dom-parcel-client-instead","errorCode":null,"errorMessage":"Use react-server-dom-parcel/client instead.","messagePattern":"Use react-server-dom-parcel/client instead\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/react-server-dom-parcel/index.js","lineNumber":10,"sourceCode":"/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n */\n\nthrow new Error('Use react-server-dom-parcel/client instead.');\n","sourceCodeStart":1,"sourceCodeEnd":11,"githubUrl":"https://github.com/facebook/react/blob/eafeac097ba51e1eab809c07102126bd5f8e5425/packages/react-server-dom-parcel/index.js#L1-L11","documentation":"react-server-dom-parcel's root export is a deliberate guard: the package is only usable through its subpath entries — './client' in browser/edge/node runtimes and './server' under the react-server condition. Importing the bare package name always evaluates this throw, redirecting you to the client entry.","triggerScenarios":"importing {createFromFetch} from 'react-server-dom-parcel' (root specifier); editor auto-import choosing the package name; a bundler resolving the package through its main field instead of the exports map.","commonSituations":"IDE auto-imports; muscle memory from other Flight packages; early RSC-with-Parcel setups before the entry split was known.","solutions":["Import from 'react-server-dom-parcel/client' for the browser, edge, or node client","On the server use 'react-server-dom-parcel/server' under --conditions react-server","Fix auto-import or TypeScript path config so the root specifier is never suggested"],"exampleFix":"// before\nimport {createFromFetch} from 'react-server-dom-parcel';\n\n// after\nimport {createFromFetch} from 'react-server-dom-parcel/client';","handlingStrategy":"validation","validationCode":"// eslint.config.js — fail the root specifier at lint time\nexport default [\n  {\n    rules: {\n      'no-restricted-imports': ['error', {\n        paths: [{\n          name: 'react-server-dom-parcel',\n          message: \"Import 'react-server-dom-parcel/client' or 'react-server-dom-parcel/server' instead\",\n        }],\n      }],\n    },\n  },\n];","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Always import a subpath: /client, /client.node, /client.edge, /server","Disable auto-import of the package root in your editor settings","Add the lint rule above so the wrong specifier never merges"],"tags":["react-server-components","parcel","package-exports","imports"],"backgroundTag":"wrong-package-entry-import","analyzedSha":"eafeac097ba51e1eab809c07102126bd5f8e5425","analyzedAt":"2026-08-21T22:01:08.818Z","schemaVersion":2},"datasetVersion":"2026-08-21T23:17:16.201Z"}