DEV Community

Discussion on: Nuxt3 : limitation on Layers & Modules

Collapse
 
v0id-4lps profile image
v0id-4lps • Edited

Hey!
I tested it and it's not working.

I use the feature to extend layer from a distant GIT repo.

export default defineNuxtConfig({
    extends: [["github:myAccount/myLayerRepo", { install: true, auth: process.env.GITHUB_TOKEN }]],
Enter fullscreen mode Exit fullscreen mode

In this case the layer is not installed as an npm package but cloned from repo by unjs/giget in /myProject/node_modules/.c12/github_myLayerRepo_xxx and it's dependencies are not installed.

Thank you for the tip anyway :)

It's not practical nor what I want but I'll publish my layer as an npm package. It should work considering the Nuxt3 documentation.