Bazze
Bazze
NNuxt
Created by Bazze on 5/29/2024 in #❓・help
Using nuxtjs/i18n types in a module
It all seems to resolve to the latest in the yarn.lock
25 replies
NNuxt
Created by Bazze on 5/29/2024 in #❓・help
Using nuxtjs/i18n types in a module
Im using yarn for the workspaces in a monorepo with turborepo.
25 replies
NNuxt
Created by Bazze on 5/29/2024 in #❓・help
Using nuxtjs/i18n types in a module
Yes, it is the module template generated with nuxi
25 replies
NNuxt
Created by Bazze on 5/29/2024 in #❓・help
Using nuxtjs/i18n types in a module
At first i was using prepack, but jiti didnt play along so well with one of my exports, so i tried to prepack the module which is when i ran into the issue.
25 replies
NNuxt
Created by Bazze on 5/29/2024 in #❓・help
Using nuxtjs/i18n types in a module
I created a standalone module.
25 replies
NNuxt
Created by Bazze on 5/29/2024 in #❓・help
Using nuxtjs/i18n types in a module
Tried building with bun instead a few times, but kept throwing the same error. Restarted vscode, and then it would build with yarn. Tried editing some things, the same error appeared. I then tried building with bun again and it would. A few times back and fourth. Thank you guys for your input. If i run into this or actually find the reason why ill post it. At the moment it seems like either the terminal or vscode is interfering with typescript. But i dont see how it would.
25 replies
NNuxt
Created by Bazze on 5/29/2024 in #❓・help
Using nuxtjs/i18n types in a module
What node version do you use to build nuxt-zod-i18n?
25 replies
NNuxt
Created by Bazze on 5/29/2024 in #❓・help
Using nuxtjs/i18n types in a module
At the moment the only import i have from nuxtjs/i18n is
import type { LocaleObject } from "@nuxtjs/i18n";
import type { DefineDateTimeFormat, DefineNumberFormat, } from "vue-i18n";

export interface LocaleConfig {
locale: LocaleObject;
datetimeFormats?: DefineDateTimeFormat;
numberFormats?: DefineNumberFormat;
}

export function defineLocale(locale: LocaleConfig): LocaleConfig {
return locale;
}
import type { LocaleObject } from "@nuxtjs/i18n";
import type { DefineDateTimeFormat, DefineNumberFormat, } from "vue-i18n";

export interface LocaleConfig {
locale: LocaleObject;
datetimeFormats?: DefineDateTimeFormat;
numberFormats?: DefineNumberFormat;
}

export function defineLocale(locale: LocaleConfig): LocaleConfig {
return locale;
}
25 replies
NNuxt
Created by Bazze on 5/29/2024 in #❓・help
Using nuxtjs/i18n types in a module
According to my .lock the nuxtjs/i18n is resolved to 8.3.1, which is the latest version.
25 replies
NNuxt
Created by Bazze on 4/25/2024 in #❓・help
Pinia and useState
The question is if is should use The vue vanilla way with ref inside the pinia store
export default defineStore("currentUserStore", () => {
const user = ref(null);

return {
user,
};
});
export default defineStore("currentUserStore", () => {
const user = ref(null);

return {
user,
};
});
Or if i should use useState
export default defineStore("currentUserStore", () => {
const user = useState(null);

return {
user,
};
});
export default defineStore("currentUserStore", () => {
const user = useState(null);

return {
user,
};
});
The guy in that question asks if they should either use Pinia or useState
10 replies