Skip to content

Error: TypeError: Cannot read properties of undefined (reading 'hasPeerDependency') #690

@cspicuzza

Description

@cspicuzza

Description

Grabbed the newest Sage 10 build using Bud for packaging. I wanted to add react and typescript support but it's throwing errors

Steps to reproduce

  1. Download the latest Sage theme
  2. yarn install
  3. yarn add @roots/bud-react --dev
  4. yarn bud init

Expected behavior: [What you expect to happen]

I expected yarn to install all the peer dependencies for react

Actual behavior: [What actually happens]

It stops with this error:

Error: TypeError: Cannot read properties of undefined (reading 'hasPeerDependency')
error Command failed with exit code 1.

Reproduces how often: [What percentage of the time does it reproduce?]

Every time

Versions

Latest Sage build from Nov 22nd

Additional information

I'm in the process of rebuilding my Sage 10 theme with laravel mix to the newest with Bud

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions