Closed deicidem closed 7 months ago
I think you have bug in the following code: src/utils/nuxt.ts
const isLayer = async (module: any) => {
let modulePath = `${projectRootDirectory()}/node_modules/${module.npm}`;
if (existsSync(modulePath)) {
let nuxtConfigPath = `${modulePath}/nuxt.config.ts`;
const result = pathExistsSync(nuxtConfigPath)
console.log('result', result);
// always true !!!
if (result !== undefined) {
return true;
} else {
return false;
}
}
};
Environment
What went wrong?
When i install a new module from sidebar, it installs as layer:
If i try to install one more module, i got an error: