I ran yarn add @roots/bud-typescript --dev
Made sure there is a tsconfig.json
in my theme root. I created this manually and set up as per @roots/bud-typescript | bud.js
{
"extends": "@roots/bud-typescript/tsconfig/tsconfig.json"
}
This is throwing a TypeScript error to begin with: Cannot find type definition file for '@roots/bud-extensions'. The file is in the program because: Entry point of type library '@roots/bud-extensions' specified in compilerOptions
But now nothing will build at all - I’m getting TypeError: Cannot read properties of undefined (reading 'tsconfig.json')
The tsconfig.json
file is there for sure.
What is the magic step in this “zero configuration” setup am I missing?