Lannister
Lannister
NNuxt
Created by Zack Plauché on 7/12/2024 in #❓・help
How to access useLocalStorage in Nuxt 3?
but you do need to install VueUse as a dependency in your project
9 replies
NNuxt
Created by Zack Plauché on 7/12/2024 in #❓・help
How to access useLocalStorage in Nuxt 3?
no, its treeshakable, you import the composable you need, in a production build only that composable code will be used
9 replies
NNuxt
Created by hswolf on 7/13/2024 in #❓・help
Change Output Dir for generated pages.
happy coding!
7 replies
NNuxt
Created by lav on 7/12/2024 in #❓・help
State not changing when using a composables
would be better to format that code 🙂
13 replies
NNuxt
Created by Zack Plauché on 7/12/2024 in #❓・help
How to access useLocalStorage in Nuxt 3?
9 replies
NNuxt
Created by Zack Plauché on 7/12/2024 in #❓・help
How to access useLocalStorage in Nuxt 3?
check out this article too
9 replies
NNuxt
Created by Zack Plauché on 7/12/2024 in #❓・help
How to access useLocalStorage in Nuxt 3?
naturally that will work client-side only
9 replies
NNuxt
Created by Zack Plauché on 7/12/2024 in #❓・help
How to access useLocalStorage in Nuxt 3?
9 replies
NNuxt
Created by Zack Plauché on 7/12/2024 in #❓・help
How to access useLocalStorage in Nuxt 3?
VueUse has a composable called useLocalStorage
9 replies
NNuxt
Created by hswolf on 7/13/2024 in #❓・help
Change Output Dir for generated pages.
make sure to point it to the right path were your dist folder symlink is created
7 replies
NNuxt
Created by hswolf on 7/13/2024 in #❓・help
Change Output Dir for generated pages.
"scripts": {
"postbuild": "test -L dist && rm dist || echo 'No symlink found'"
}
"scripts": {
"postbuild": "test -L dist && rm dist || echo 'No symlink found'"
}
7 replies
NNuxt
Created by hswolf on 7/13/2024 in #❓・help
Change Output Dir for generated pages.
a semi-hacky way to deal with it is to remove it in a post-build script
7 replies
NNuxt
Created by hswolf on 7/13/2024 in #❓・help
Change Output Dir for generated pages.
creating a symbolic link in the project root is by design, I don't think there's much to do about that
7 replies
NNuxt
Created by Lannister on 7/6/2024 in #❓・help
Undesired Route Path Casing Override in i18n module
its too hacky
7 replies
NNuxt
Created by Lannister on 7/6/2024 in #❓・help
Undesired Route Path Casing Override in i18n module
I dont see the point of using hooks and modules to overcome this
7 replies
NNuxt
Created by Lannister on 7/6/2024 in #❓・help
Undesired Route Path Casing Override in i18n module
it is now, yes, but I decided to go all lowercase in files based routing
7 replies
NNuxt
Created by Lannister on 7/6/2024 in #❓・help
Undesired Route Path Casing Override in i18n module
or set some flag, config or hook somewhere?
7 replies
NNuxt
Created by Lannister on 7/6/2024 in #❓・help
Undesired Route Path Casing Override in i18n module
anyone has a clue how to re-normalize all the route paths to lowercase?
7 replies
NNuxt
Created by Lannister on 6/14/2024 in #❓・help
Layers under ~/layers not auto-registered in v3.12.1
it appears I had wrongly upgraded nuxt , I had differeny nuxt versions in layers
2 replies
NNuxt
Created by Lannister on 3/17/2024 in #❓・help
Uncaught TypeError: Cannot read properties of undefined (reading 'baseURL')
const fetch = _globalThis$1.fetch || (() => Promise.reject(new Error("[ofetch] global.fetch is not supported!")));
const Headers = _globalThis$1.Headers;
const AbortController = _globalThis$1.AbortController;
const ofetch = createFetch({ fetch, Headers, AbortController });
const $fetch$1 = ofetch;

if (!globalThis.$fetch) {
globalThis.$fetch = $fetch$1.create({
baseURL: baseURL() //Complains here...
});
}
const fetch = _globalThis$1.fetch || (() => Promise.reject(new Error("[ofetch] global.fetch is not supported!")));
const Headers = _globalThis$1.Headers;
const AbortController = _globalThis$1.AbortController;
const ofetch = createFetch({ fetch, Headers, AbortController });
const $fetch$1 = ofetch;

if (!globalThis.$fetch) {
globalThis.$fetch = $fetch$1.create({
baseURL: baseURL() //Complains here...
});
}
3 replies