Timmmy
Timmmy
Explore posts from servers
NNuxt
Created by Timmmy on 8/4/2024 in #❓・help
NuxtUI Error: [vite-node] [ERR_LOAD_URL] #tailwind-config/theme/colors
I am trying to use NuxtUI with Tailwind css and keep getting this error:
ERROR Pre-transform error: Failed to resolve import "#tailwind-config/theme/colors" from "node_modules/@nuxt/ui/dist/runtime/plugins/colors.js?v=e2049a4c". Does the file exist?
ERROR Pre-transform error: Failed to resolve import "#tailwind-config/theme/colors" from "node_modules/@nuxt/ui/dist/runtime/plugins/colors.js?v=e2049a4c". Does the file exist?
This is my tailwind-config:
module.exports = {
theme: {
extend: {
colors: {
red: {
logo: '#d22c24',
},
}
},
},
}
module.exports = {
theme: {
extend: {
colors: {
red: {
logo: '#d22c24',
},
}
},
},
}
1 replies
NNuxt
Created by Timmmy on 12/23/2022 in #❓・help
Quotation marks
No description
3 replies
NNuxt
Created by Timmmy on 12/21/2022 in #❓・help
Refetching data every x minutes
<script setup >

const props = defineProps({
deviceUrl: String
})

const { data: status, pendingStatus, refresh: refreshStatus } = useLazyFetch(props.deviceUrl + "/status")
const { data: settings, pendingSettings, refresh: refreshSettings } = useLazyFetch(props.deviceUrl + "/settings")

function toggleDevice(isOn) {
if (isOn) {
useLazyFetch(props.deviceUrl + "/relay/0?turn=off")
} else {
useLazyFetch(props.deviceUrl + "/relay/0?turn=on")
}

refreshStatus();
refreshSettings();
}

</script>
<script setup >

const props = defineProps({
deviceUrl: String
})

const { data: status, pendingStatus, refresh: refreshStatus } = useLazyFetch(props.deviceUrl + "/status")
const { data: settings, pendingSettings, refresh: refreshSettings } = useLazyFetch(props.deviceUrl + "/settings")

function toggleDevice(isOn) {
if (isOn) {
useLazyFetch(props.deviceUrl + "/relay/0?turn=off")
} else {
useLazyFetch(props.deviceUrl + "/relay/0?turn=on")
}

refreshStatus();
refreshSettings();
}

</script>
I want to automatically update status & settings every minute, how would I do that?
17 replies