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

bug: project fails to build on Windows #462

Open
3 tasks done
mdellanave opened this issue Aug 26, 2024 · 7 comments
Open
3 tasks done

bug: project fails to build on Windows #462

mdellanave opened this issue Aug 26, 2024 · 7 comments
Labels
help wanted a good issue for the community

Comments

@mdellanave
Copy link

Prerequisites

Stencil Version

4.16

Stencil Framework Output Target

Angular

Stencil Framework Output Target Version

0.8.4

Current Behavior

running pnpm build fails due to this error
image

Expected Behavior

should pass the tests and creates all the libraries

Steps to Reproduce

download the main branch and follow the instructions in readme file

Code Reproduction URL

https://github.com/ionic-team/stencil-ds-output-targets

Additional Information

No response

@ionitron-bot ionitron-bot bot added the triage label Aug 26, 2024
Copy link

ionitron-bot bot commented Aug 26, 2024

Thanks for the issue!

This project is currently maintained for the purposes of supporting Ionic Framework. At this time, only new issues & pull requests that support Ionic Framework will be prioritized. For the latest updates regarding the maintenance status of this project, please see this section of the project's README

@sean-perkins
Copy link
Contributor

I do not believe the README includes instructions for running the tests, only installing and building the projects in the workspace.

The screenshot indicates the diffs are caused by code formatting. The component wrappers are generated with a static formatting output and then are expected to be formatted by the developers configuration (prettier, etc.).

Can you try running prettier and then see if the tests pass on your end?

npm run prettier from the root of the workspace should format all projects.

@mdellanave
Copy link
Author

Thank you @sean-perkins for your time

I don't see problem in npm run prettier
image

it's the pnpm build that cause the error I mentioned in the topic, I think because it fails to run the tests parts on angular.
image
image

Do you need some more info?

@christian-bromann
Copy link
Member

I wonder if this is related to the fact that Windows is being used here. Our pipeline as well as most of machines our devs run are Linux based (most folks use Macs).

@christian-bromann christian-bromann changed the title bug: bug: project fails to build on Windows Aug 27, 2024
@sean-perkins
Copy link
Contributor

Yeah I think it has to be a character encoding difference between Windows and Unix systems. I didn't include it in my original comment, but the --write flag should be passed to prettier:

pnpm run prettier -- --write

However I was unable to get the tests to fail with:

  • pnpm install
  • pnpm run build
  • pnpm run test

as well as they are passing in CI.

With our maintenance status, we are unlikely to prioritize investigation into this issue. We'd gladly welcome a contribution if you are able to root cause the issue.

@christian-bromann christian-bromann added help wanted a good issue for the community and removed triage labels Aug 28, 2024
Copy link

ionitron-bot bot commented Aug 28, 2024

This issue has been labeled as help wanted. This label is added to issues that we believe would be good for contributors.

If you'd like to work on this issue, please comment here letting us know that you would like to submit a pull request for it. This helps us to keep track of the pull request and make sure there isn't duplicated effort.
Thank you!

@mdellanave
Copy link
Author

if I run pnpm run prettier --write (or pnpm run prettier -- --write as @sean-perkins wrote)
image

Which version of pnpm are you using guys?
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted a good issue for the community
Projects
None yet
Development

No branches or pull requests

5 participants
@christian-bromann @sean-perkins @mdellanave and others