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] Change the way of building the Component Library as an external package #380

Open
AlanLes opened this issue Feb 27, 2024 · 0 comments
Labels
3: Medium bug Something isn't working enhancement New feature or request invalid This doesn't seem right nice to have

Comments

@AlanLes
Copy link
Contributor

AlanLes commented Feb 27, 2024

Describe the bug

There is a problem with the package usage.

  1. Sometimes, if there are existing errors returned from the vue-tsc - these errors are displayed in the client's console as well.
  2. In the UiPhoneNumber component, we use external libraries and fetch JSON files from the node_modules. In the Storybook and in our project, the component works fine, but when used in the external project, it throws errors and is completely unusable. Screenshot below:

To Reproduce

Steps to reproduce the behavior:

  1. Create brand new vue project and add the CL to it.
  2. Import the UiPhoneNumber and try to use it.

Expected behavior

The component should work with no errors in the console.

Screenshots

image (2)

Additional context

This may be a helpful resource. Maybe we should consider this solution?
https://www.freecodecamp.org/news/how-to-create-and-publish-a-vue-component-library-update/

@AlanLes AlanLes added bug Something isn't working enhancement New feature or request invalid This doesn't seem right nice to have 3: Medium labels Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3: Medium bug Something isn't working enhancement New feature or request invalid This doesn't seem right nice to have
Projects
None yet
Development

No branches or pull requests

1 participant