i18n working fine in dev mode but not in production
nuxt content order by deep value
NuxtUI input components don't support v-model.trim?
UInput
or UTextarea
components with v-model.trim
property, I get typescript error TS2353, but it's fine if I use the native <input>
tag.
Object literal may only specify known properties, and modelModifiers does not exist in type {...}
The trim modifier seems to be working in the form, but I can't make the error go away......How to show full screen error page with throw createError()
throw createError()
to display a fullscreen error (with error.vue) which works with client side rendering. But for some reason, it simply doesn't display anything but the surrounding page (using NuxtPage component in app.vue) when rendered on the server.
I checked the browser console and looked over the Nuxt dev tools, doesn't appear to be anything wrong there. The dev server is displaying the errors in the terminal, but that's it. New to Vue and Nuxt, appreciate any help.
Here is the setup script in question:...registerEndpoint and custom $fetch wrapper
/api/thing/{someId}/resource
, but when I use registerEndpoint
in my tests, the calls still seem to both get intercepted and sent to the server, resulting in 404's.
Normally one would use registerEndpoint('/api/rest-of-route')
, nut because of {someId}
this doesn't work and I have to specify the resolved route (i.e http://localhost:5255/api/things/123/resource
and I think nust test utils doesn't handle that properly?...In a navigation menu, how can I hide the text in mobile views and only display the icon
<UNavigationMenu :items="items" color="secondary" class="pt-1"/>
<UNavigationMenu :items="items" color="secondary" class="pt-1"/>
Using Tailwind CSS 4 within a Nuxt Module
@nuxtjs/tailwindcss
module currently doesn't support Tailwind CSS 4, so Tailwind CSS is set up using the Vite plugin. The code I have below kinda sets up Tailwind. It applies the resets and stuff, but any classes used in components are not applied be default. I found what I consider to be a workaround which is to use the @reference
directive within the <style>
tag of each component (@reference '../assets/css/main.css'
), but I don't know if that's the proper way of doing things.
Here's a simplified version of the module what I have so far:
```...Nuxt UI-PRO license and monorepo
Rewriting URL
maplibre-gl bundling
import { LngLat } from 'maplibre-gl'
— error says:
The requested module 'maplibre-gl' does not provide an export named 'LngLat'
The requested module 'maplibre-gl' does not provide an export named 'LngLat'
nuxt scripts rybbit.io analytics custom events hit or miss.
Nuxt Debug Named default
Building vitepress and a nuxt playground
- name: Build playground
run: NUXT_BASE_URL=/nuxt-mything/ npm run build --preset github_pages
- name: Build playground
run: NUXT_BASE_URL=/nuxt-mything/ npm run build --preset github_pages
Hot-reload resets component state (What is best practice?)
ES Lint breaks when upgading
toRefs() error since update
formdata append not working
``ts
Array.from(data).forEach((file, index) => {
console.log(file)
formData.append(
index${index}`, file)
console.log(formData)...Passing module options to runtime
nuxt.config.ts
) to parts of the runtime code such as components and server handlers?Create a TypeScript interface for your module options....
Font not loading on production build
~/assets/fonts/Symbols-2048-em Nerd Font Complete.woff2
).
You can see the whole code here: https://github.com/TheDogHusky/home-clock...