-
Notifications
You must be signed in to change notification settings - Fork 9
Closed
Description
Fresh installation of the project fails with dependency resolution errors preventing the development server from starting.
Environment
- Node.js: v21.7.3
- npm: 10.5.0
- OS: macOS
Reproduction Steps
- Clone the repository
- Install dependencies:
npm install
- Start the development server:
npm run dev
Expected Behavior
The development server should start successfully at http://localhost:5173
Actual Behavior
The installation and server startup fail with multiple errors:
Error 1: Missing react-is dependency
✘ [ERROR] Could not resolve "react-is"
node_modules/@carbon/ibm-products/es/node_modules/prop-types/index.js:9:23:
9 │ import require$$0 from 'react-is';
╵ ~~~~~~~~~~
Error: Error during dependency optimization
Workaround: Install react-is manually:
npm install react-isError 2: Missing export from @carbon-labs/utilities
After installing react-is, the server starts but fails with:
SyntaxError: The requested module '../node_modules/@carbon-labs/utilities/es/usePrefix.js' does not provide an export named 'usePrefix'
at file:///Users/alexseymour/datalabs/templates/carbon-react-router-starter/node_modules/@carbon-labs/react-theme-settings/es/components/ThemeSettings.js:12
Metadata
Metadata
Assignees
Labels
No labels