Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(storybook): some storybook doc and other fixes #10387

Merged
merged 1 commit into from May 19, 2022

Conversation

mandarini
Copy link
Member

@mandarini mandarini commented May 19, 2022

Current Behavior

  • Some docs are now outdated since we're using the @storybook/angular executor
  • Migrator fails due to not optional chaining (looking for non-existing attribute)

Expected Behavior

  • Removed/changed outdated docs
  • Optional-chained the lookups

Related Issue(s)

Also fixes the following issue:

Fixes #10374

@nx-cloud
Copy link

nx-cloud bot commented May 19, 2022

☁️ Nx Cloud Report

CI is running/has finished running commands for commit 374dd8a. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this branch


✅ Successfully ran 12 targets

Sent with 💌 from NxCloud.

@vercel
Copy link

vercel bot commented May 19, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
nx-dev ✅ Ready (Inspect) Visit Preview May 19, 2022 at 1:43PM (UTC)

@matigda
Copy link

matigda commented Jul 26, 2022

Hey!

Thanks for your work :) I have one question regarding this PR. Right now I get the error:

Property 'uiFramework' does not match the schema. '@storybook/angular' should be one of @storybook/react,@storybook/html,@storybook/web-components,@storybook/vue,@storybook/vue3,@storybook/svelte.

It seems like enum property - created in this PR - doesn't have @storybook/angular value in it. Was that on purpose?

@mandarini
Copy link
Member Author

Hi there @matigda ! Yes, that's 100% on purpose.

Please read this comment and this comment and let me know if you have any questions. Also, can I see your nx report?

@mandarini mandarini self-assigned this Jul 26, 2022
@matigda
Copy link

matigda commented Jul 26, 2022

My nx report:

   Node : 16.14.2
   OS   : linux x64
   npm  : 8.5.0
   
   nx : 14.4.3
   @nrwl/angular : 14.4.3
   @nrwl/cypress : 14.4.3
   @nrwl/detox : Not Found
   @nrwl/devkit : 14.4.3
   @nrwl/eslint-plugin-nx : 14.4.3
   @nrwl/express : Not Found
   @nrwl/jest : 14.4.3
   @nrwl/js : 14.4.3
   @nrwl/linter : 14.4.3
   @nrwl/nest : Not Found
   @nrwl/next : Not Found
   @nrwl/node : Not Found
   @nrwl/nx-cloud : Not Found
   @nrwl/nx-plugin : Not Found
   @nrwl/react : Not Found
   @nrwl/react-native : Not Found
   @nrwl/schematics : Not Found
   @nrwl/storybook : 14.4.3
   @nrwl/web : 14.4.3
   @nrwl/workspace : 14.4.3
   typescript : 4.7.4
   ---------------------------------------
   Community plugins:
   	 rxjs: 6.6.7
   	 @storybook/angular: 6.4.0-rc.3

I ran nx migrate latest but right now when I try to run nx migrate --run-migrations I get this error:

>  NX  Running migrations from 'migrations.json'

Running migration 14-0-6-remove-root

 >  NX   'project.json' files are incompatible with version 1 workspace schemas.

When I tried to run nx generate change-storybook-targets ${my-package} I got


>  NX  Generating @nrwl/angular:change-storybook-targets


 >  NX   Schema does not support positional arguments. Argument 'my-package' found

@mandarini
Copy link
Member Author

@matigda hmm I see. Can you create a new issue on the issues page? And please include the following:

  1. Your nx report
  2. Which version you are migrating from
  3. Do you have an angular.json or workspace.json or none?
  4. The contents of one of your project.json files. If there's sensitive data, you can remove the sensitive data, we just need to see the format, if something broke for some reason.

@matigda
Copy link

matigda commented Aug 11, 2022

@mandarini it appeared that changing manually "version" in workspace.json to 2 solved this issue.

@github-actions
Copy link

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Migration fails on @nrwl/storybook
2 participants