Frox
Frox
NNuxt
Created by Frox on 2/24/2025 in #❓・help
ohash error eferenceError: Cannot access 'defaults' before initialization
Nitro fails to starts: I've tracked the problem to ohash function:
function objectHash(object, options) {
if (options) {
options = { ...defaults, ...options };
} else {
options = defaults;
}
const hasher = createHasher(options);
hasher.dispatch(object);
return hasher.toString();
}
function objectHash(object, options) {
if (options) {
options = { ...defaults, ...options };
} else {
options = defaults;
}
const hasher = createHasher(options);
hasher.dispatch(object);
return hasher.toString();
}
How to solve this?
11 replies
NNuxt
Created by Frox on 7/17/2024 in #❓・help
loadingTemplate - how to use?
Hi I want to modify loadingTemplate inside NuxtModule it is possible? Or it is possible only in defineNuxtConfig. In both cases can someone share an example of usage didn't found anything on this matter on the internet.
2 replies