{"id":20493935,"url":"https://github.com/willtpwise/vue-comp-package","last_synced_at":"2026-05-29T18:31:14.461Z","repository":{"id":38135202,"uuid":"236599384","full_name":"willtpwise/vue-comp-package","owner":"willtpwise","description":null,"archived":false,"fork":false,"pushed_at":"2023-01-05T05:52:32.000Z","size":424,"stargazers_count":0,"open_issues_count":33,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-05T17:51:57.227Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/willtpwise.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-01-27T21:30:02.000Z","updated_at":"2020-01-28T07:02:09.000Z","dependencies_parsed_at":"2023-02-03T14:32:20.955Z","dependency_job_id":null,"html_url":"https://github.com/willtpwise/vue-comp-package","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/willtpwise/vue-comp-package","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willtpwise%2Fvue-comp-package","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willtpwise%2Fvue-comp-package/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willtpwise%2Fvue-comp-package/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willtpwise%2Fvue-comp-package/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/willtpwise","download_url":"https://codeload.github.com/willtpwise/vue-comp-package/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willtpwise%2Fvue-comp-package/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33666290,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-29T02:00:06.066Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-15T17:37:36.314Z","updated_at":"2026-05-29T18:31:14.427Z","avatar_url":"https://github.com/willtpwise.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Overview\n\nThis repo has two directories:\n* `package`: A shared Vue.js library which exposes a `my-button` component\n* `client`: A Vue.js app which consumes the `my-button` component\n\n## The Issue\n\nThe Vue Composition API throws an error when a component library (using the composition api) attempts to use one of the composition API methods (e.g. `ref()`).\n\n*In this reproduction:*\n1. The client installs the Vue Composition API, then the package in [client/src/main.js](client/src/main.js)\n1. The package globally installs the [my-button component](package/src/my-button.vue) inside of the package's [install function](package/src/index.js)\n1. The client renders the my-button component in [App.vue](client/src/App.vue)\n1. The browsers throws an error:\n\n```\n[Vue warn]: Error in data(): \"Error: [vue-composition-api] must call Vue.use(plugin) before using any function.\"\n```\n\n## Steps to Reproduce\n\n### Build The Package\n```\ncd package\nnpm i\nnpm run build\n```\n\n### Run The Client\n```\ncd client\nnpm i\nnpm run serve\n```\nNow open http://localhost:8080\n\nYou should see a heading and a button. The button is a component exposed by the package. Both of these elements are rendering their content from a `ref` declared inside of a `setup` function of their respective components. The button's content however is not rendered due to the issue above. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwilltpwise%2Fvue-comp-package","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwilltpwise%2Fvue-comp-package","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwilltpwise%2Fvue-comp-package/lists"}