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

Stepper component style build is broken #5332

Closed
haiming236 opened this issue Feb 24, 2024 · 3 comments
Closed

Stepper component style build is broken #5332

haiming236 opened this issue Feb 24, 2024 · 3 comments
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@haiming236
Copy link

Describe the bug

When encountering style issues using the new component Stepper, please send it for resolution
PixPin_2024-02-24_20-26-54
PixPin_2024-02-24_20-26-22

Reproducer

https://stackblitz.com/edit/primevue-create-vue-typescript-issue-template-asv6zd?file=src%2Fmain.ts

PrimeVue version

3.49

Vue version

3.x

Language

TypeScript

Build / Runtime

Vue CLI App

Browser(s)

No response

Steps to reproduce the behavior

No response

Expected behavior

No response

@haiming236 haiming236 added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Feb 24, 2024
@zhaoyao
Copy link

zhaoyao commented Feb 25, 2024

The issue is caused by the primevue/stepper/style/package.json file. It mistakenly uses the contents of stepperpanel/package.json.

{
    "main": "./stepperpanel.cjs.js",
    "module": "./stepperpanel.esm.js",
    "unpkg": "./stepperpanel.min.js",
    "types": "./StepperPanel.d.ts"
}

Replacing it with the following:

{
    "main": "./stepperstyle.cjs.js",
    "module": "./stepperstyle.esm.js",
    "unpkg": "./stepperstyle.min.js",
    "types": "./StepperStyle.d.ts"
}

will fix the issue, allowing for successful imports.

@haiming236
Copy link
Author

Thank you for resolving the backend runtime error, but the component still cannot be rendered properly. Did you succeed? The frontend console printed ReferenceError: StepperStyle is not defined

@Slluxx
Copy link

Slluxx commented Feb 25, 2024

Facing the same issue.
The fix works.

@tugcekucukoglu tugcekucukoglu added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Feb 26, 2024
@tugcekucukoglu tugcekucukoglu added this to the 3.49.1 milestone Feb 26, 2024
@tugcekucukoglu tugcekucukoglu self-assigned this Feb 26, 2024
@tugcekucukoglu tugcekucukoglu changed the title stepper component Stepper component style build is broken Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

No branches or pull requests

4 participants