You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After this #19534 PR ng-packagr-lite seems to be playing up when running storybook against a buildable angular lib. (yarn nx storybook <project>)
Error: no schema with key or ref "https://json-schema.org/schema"
at Ajv.validate (C:\repo\node_modules\ajv\lib\core.ts:359:21)
at Ajv.validateSchema (C:\repo\node_modules\ajv\lib\core.ts:515:24)
at Ajv._addSchema (C:\repo\node_modules\ajv\lib\core.ts:721:30)
at Ajv.compile (C:\repo\node_modules\ajv\lib\core.ts:384:22)
at CoreSchemaRegistry._compile (C:\repo\node_modules\@angular-devkit\core\src\json\schema\registry.js:246:35)
at CoreSchemaRegistry.compile (C:\repo\node_modules\@angular-devkit\core\src\json\schema\registry.js:231:37)
at name (C:\repo\node_modules\@angular-devkit\architect\src\architect.js:224:43)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
Error: no schema with key or ref "https://json-schema.org/schema"
at Ajv.validate (C:\repo\node_modules\ajv\lib\core.ts:359:21)
at Ajv.validateSchema (C:\repo\node_modules\ajv\lib\core.ts:515:24)
at Ajv._addSchema (C:\repo\node_modules\ajv\lib\core.ts:721:30)
at Ajv.compile (C:\repo\node_modules\ajv\lib\core.ts:384:22)
at CoreSchemaRegistry._compile (C:\repo\node_modules\@angular-devkit\core\src\json\schema\registry.js:246:35)
at CoreSchemaRegistry.compile (C:\repo\node_modules\@angular-devkit\core\src\json\schema\registry.js:231:37)
at name (C:\repo\node_modules\@angular-devkit\architect\src\architect.js:224:43)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
Yeah, it's a known issue that @nx/angular:ng-packagr-lite does not support build, so we have to use build-storybook, so this is why we generate with build-storybook instead of storybook in the first place:
"If your project is buildable (it has a build target, and uses the main Angular builder - @angular-devkit/build-angular:browser) the browserTarget for Storybook will use the build target"
I will add the update these docs and make them more prominent!
Current Behavior
After this #19534 PR
ng-packagr-lite
seems to be playing up when running storybook against a buildable angular lib. (yarn nx storybook <project>
)This is the schema it doesn't like - https://github.com/beeman/nx/blob/65c448727d2b6b00fea27f7f374989712cff8cec/packages/angular/src/executors/ng-packagr-lite/schema.json
Expected Behavior
yarn nx storybook <project>
run without any errors.GitHub Repo
https://github.com/mandarini/storybook-nx-17.3.1
Steps to Reproduce
build
instead ofbuild-storybook
.yarn nx storybook <project>
Nx Report
Failure Logs
Package Manager Version
No response
Operating System
Additional Information
More discussion can be found in this thread #19534 (comment).
The text was updated successfully, but these errors were encountered: