Open varghesethomase opened 1 year ago
Are you using npm or another library like pnpm / yarn?
I am using yarn.
On debugging, I could find that in quantity.js file, the function ifDefined(this.label))
is returning a function and this is what is displayed.
Thank you for the catch. Cc: @ATHULKNAIR
We noticed this same problem sometime ago, but it only happened when using yarn and not npm for some reason.
We will fix this soon. Would be glad to merge your PR if you’re interested @varghesethomase.
I can try @sidharthramesh . Is there someone who could assist me on this? In the mean time I also found issues with mb-select
. Going through the code looks ok to me. But on rendering the html below,
<mb-select
path="covid.form.v1/clinical_background/covid_19_admission/hospital_admission_status"
label="Hospital admission status">
<mb-option value="at0003" label="YES" />
<mb-option value="at0004" label="NO" />
<mb-option value="at0005" label="UNKNOWN" />
</mb-select>
<mb-date
time
path="covid.form.v1/clinical_background/covid_19_admission/date_first_admitted"
label="Date first admitted"
/>
it displays as it is in the screenshot
As I said, try using npm instead of yarn and see if you are able to reproduce these errors.
Thanks @sidharthramesh I can confirm that the package works as expected with npm instead of yarn. Since it might be still worth checking why the issue happens only with yarn, I'll keep this ticket open. I would like to see if you have the same feeling that it might be caused due to the difference in version of packages that yarn installs when compared to npm based on minor dependencies or so? Let me know your thoughts.
We usually use npm. And I have no idea why there are these issues when using yarn.
should I still keep this issue open? Maybe rename it to something like “issue with yarn”?
I used the latest vite and svelte project to use the medblocks ui library The below is my package.json
As per the docs, the below was added to the App.svelte.
On importing a template related to blood pressure, it does not render correctly. The screenshot of the same is attached below. The issue seems to be with components like
mb-quantity
andmb-select
.@sidharthramesh I would appreciate your support here.