This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Description
Describe the bug
Missing mode function in @chakra-ui/nuxt (here)
To Reproduce
Steps to reproduce the behavior:
- Try this code (from the doc) in nuxt:
<template>
<c-box
:bg="[
$mode('orange.600', 'yellow.100'),
$mode('pink.600', 'green.100')
]"
:color="$mode('white', 'blackAlpha.800')"
@click="chakraToggleColorMode"
>
Box "{{ chakraColorMode }}" mode. Click me to toggle color mode.
</c-box>
</template>
- See error:
Uncaught ReferenceError: mode is not defined
at VueComponent.eval (chakra.js?fb07:113)
at :1:6
Additional context
"dependencies": {
"@chakra-ui/nuxt": "^0.4.2",
"@nuxtjs/emotion": "^0.1.0",
"core-js": "^3.15.1",
"nuxt": "^2.15.7"
}