You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import{field}from'@nozbe/watermelondb/decorators'classPostextendsModel{// ...
@field('title')title
@field('body')body// ... and so on}
I need to use this instead:
importallDecoratorsPackagefrom'@nozbe/watermelondb/decorators'classPostextendsModel{// ...
@allDecoratorsPackage.field('title')title
@allDecoratorsPackage.field('body')body
@allDecoratorsPackage.field('is_pinned')isPinned// ... and so on}
I really love ❤️ ViteJS.
What makes me sad is something like this below.
I wanna use the amazing https:/Nozbe/WatermelonDB for a project but I have problems with ES/CJS music.
Since they are using CJS export today (I opened this asking for ES) I'm using this in my
vite.config.js
:What makes me sad now is:
I cannot use this code:
I need to use this instead:
I loose Typescript definitions in case like this:
and Typescript doesn't show definitions because of:
Given that sooner or later everyone will export ESM,
given that I am doing everything to speed up this process (flatpickr is almost done merging PR!),
can we please find a way for fix these two "issues" that hinder rapid application development?
Thank you for your talent and your time.
The text was updated successfully, but these errors were encountered: