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(common): adding unbuild dependency to fix type problems #313

Merged
merged 9 commits into from
Nov 28, 2023

Conversation

BibiSebi
Copy link
Contributor

@BibiSebi BibiSebi commented Nov 6, 2023

What?

This PR evolves around adding the unbuild js dependency to field-plugin and helpers to solve type-related problems found via arethetypeswrong.github.com

In this PR the output for field-plugin seems to be passing. However as soon as I added unbuild to react helper the tests for field-plugin/react are all failing.

Screenshot 2023-11-06 at 10 50 46

UPDATE

after running yarn build:helpers from the root package and moving vite to dependencies instead of devDependencies it is possible for me to build the helpers with no problems.

Screenshot 2023-11-06 at 13 37 28

Why?

JIRA: EXT-2052

How to test? (optional)

  1. Run yarn install in the root
  2. Run yarn build:helpers inside the root package still
  3. Run attw --pack inside the field plugin package --> attw is a CLI running the same testing as the 'arethetypeswrong.github.io' website

Copy link

vercel bot commented Nov 6, 2023

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

Name Status Preview Comments Updated (UTC)
plugin-sandbox ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 13, 2023 0:30am

@@ -41,7 +37,7 @@ function closeModal() {
<div class="container">
<Counter
:count="plugin.data.content"
:onIncrease="() => plugin.actions.setContent(plugin.data.content + 1)"
@onIncrease="plugin.actions.setContent(plugin.data.content + 1)"
Copy link
Contributor Author

@BibiSebi BibiSebi Nov 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I needed to make some changes to fix typescript issues. I will attach a video to explain why there was a TS issue in vue3 template.

You can find more details here --> https://storyblok.slack.com/archives/C04P3JBHWHW/p1699883718219399

Copy link
Contributor

@eunjae-lee eunjae-lee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great. Thanks for the hard work! :)

@BibiSebi BibiSebi merged commit 6ef0756 into main Nov 28, 2023
@BibiSebi BibiSebi deleted the EXT-1978-research-on-unbuild branch November 28, 2023 07:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants