\n\nFrom what I understand, according to the error logged, the issue is caused by the resulting css tree having nested `@source` declarations.\n\n### Additional context\n\nI'm working on migrating an existing website that was built using Bootstrap (lol) and I'd like to use layers to ensure the newer css gets a higher priority than the old one.\n\nUsing `@import \"tailwindcss\" layer(tailwindcss);` results in all the tailwind stuff being scoped to the `tailwindcss` layer (eg. `tailwindcss.theme`, `tailwindcss.base`…).\n\nHowever, when I try to do the same for `@import \"@nuxt/ui\"` I get the previously mentioned error.\n\nI've tried using both the same and a different layer name than the one I use for tailwind but I still get the error.\n\n### Logs\n\n```shell-script\nERROR Pre-transform error: @source cannot be nested. 12:42:31 PM\n Plugin: @tailwindcss/vite:generate:serve\n File: /project/workspace/app/assets/css/main.css\n```",[3019,3022,3025],{"name":3020,"color":3021},"bug","d73a4a",{"name":3023,"color":3024},"v3","49DCB8",{"name":3026,"color":3027},"triage","ffffff",4503,"nuxt","ui","open","`@import \"@nuxt/ui\" layer(layer-name);` not working","2025-07-11T13:35:06Z","https://github.com/nuxt/ui/issues/4503",0.72015023,{"description":3037,"labels":3038,"number":3048,"owner":3029,"repository":3029,"state":3049,"title":3050,"updated_at":3051,"url":3052,"score":3053},"### Environment\n\n- Operating System: Windows_NT\r\n- Node Version: v18.15.0\r\n- Nuxt Version: 3.7.0\r\n- CLI Version: 3.7.2\r\n- Nitro Version: 2.6.2\r\n- Package Manager: npm@9.8.1\r\n- Builder: -\r\n- User Config: extends, devtools\r\n- Runtime Modules: -\r\n- Build Modules: -\n\n### Reproduction\n\n1. Setup a private Bitbucket repository\r\n2. Initialize a new Nuxt project\r\n3. Try to extend from the Bitbucket repository (see code below)\r\n4. Nuxt is unable to fetch the remote repository\n\n### Describe the bug\n\nThe concept of Nuxt Layers seems very promising. So I decided to establish Layers in my company as way to share common components between various Nuxt projects. We generally store our code on Bitbucket. So I made a private Bitbucket repository for our shared code basis. However Nuxt is unable to fetch from this repository.\r\n\r\nMy setup:\r\n\r\n- _.env_ file:\r\n `GIGET_AUTH=XXXXXXXXXXXXXXXXXXXXXXX`\r\n\r\n- _nuxt.config.ts_:\r\n ```ts\r\nexport default defineNuxtConfig({\r\n extends: [\r\n 'bitbucket:user_name/project_name#branch', \r\n ],\r\n // ...\r\n})\r\n```\r\n\r\nInternally `unjs/giget` converts this to `https://bitbucket.org/user_name/project_name/get/branch.tar.gz`. However in my opinion something like `https://api.bitbucket.org/2.0/repositories/user_name/project_name/src/branch/` would be more correct. I found a similar issue regarding [private github repositories](https://github.com/unjs/giget/pull/93#issue-1653853707) which is not released yet.\r\n\r\nIs this bug by Nuxt (/giget) or am I doing something wrong? Any help is much appreciated.\n\n### Additional context\n\n_No response_\n\n### Logs\n\n_No response_",[3039,3042,3045],{"name":3040,"color":3041},"3.x","29bc7f",{"name":3043,"color":3044},"pending triage","E99695",{"name":3046,"color":3047},"upstream","E8A36D",22928,"closed","Unable to extend layers from private Bitbucket repository","2023-08-31T12:40:21Z","https://github.com/nuxt/nuxt/issues/22928",0.67055434,{"description":3055,"labels":3056,"number":3064,"owner":3029,"repository":3029,"state":3049,"title":3065,"updated_at":3066,"url":3067,"score":3068},"### Describe the feature\r\n\r\nI am working on the project that extends a nuxt layer from a private repository\r\n```\r\nextends: [\r\n\t\t[\r\n\t\t\t'gitlab:username/repository/name',\r\n\t\t\t{ install: true }\r\n\t\t],\r\n\t],\r\n```\r\n With postinstall script that looks like \r\n `\"path-package; nuxt prepare\"`\r\n\r\nThe `yarn install` running with this configuration results in a recursive call to the postinstall script. \r\nIs there a possibility to set the `--ignore-scripts` option to the install script of the repository that is being extended? \r\n\r\nNote: patch-package script is needed here to fix issue with extending gitlab subgroups repositories \r\n(PR with fix https://github.com/unjs/giget/pull/141)\r\n\r\n\r\n### Additional information\r\n\r\n- [ ] Would you be willing to help implement this feature?\r\n- [ ] Could this feature be implemented as a module?\r\n\r\n### Final checks\r\n\r\n- [X] Read the [contribution guide](https://nuxt.com/docs/community/contribution).\r\n- [X] Check existing [discussions](https://github.com/nuxt/nuxt/discussions) and [issues](https://github.com/nuxt/nuxt/issues).",[3057,3058,3061],{"name":3043,"color":3044},{"name":3059,"color":3060},"needs reproduction","FBCA04",{"name":3062,"color":3063},"closed-by-bot","ededed",27038,"Option to install layer dependencies with --ignore-scripts","2025-06-08T02:14:12Z","https://github.com/nuxt/nuxt/issues/27038",0.6738078,{"description":3070,"labels":3071,"number":3077,"owner":3029,"repository":3029,"state":3049,"title":3078,"updated_at":3079,"url":3080,"score":3081},"### Environment\n\n- Operating System: `Windows_NT`\r\n- Node Version: `v18.13.0`\r\n- Nuxt Version: `3.1.0`\r\n- Nitro Version: `2.0.0`\r\n- Package Manager: `yarn@1.22.19`\r\n- Builder: `vite`\r\n- User Config: `extends`\r\n- Runtime Modules: `-`\r\n- Build Modules: `-`\n\n### Reproduction\n\nhttps://stackblitz.com/edit/github-wfxuxw?file=nuxt.config.ts\n\n### Describe the bug\n\nCurrently isn't possible to extend the Nuxt project by remote source from self-hosted Gitlab instance\n\n### Additional context\n\n_No response_\n\n### Logs\n\n_No response_",[3072,3073,3074],{"name":3040,"color":3041},{"name":3020,"color":3021},{"name":3075,"color":3076},"upstream-bug","B60205",18540,"Nuxt extends doesn't work with self hosted Gitlab instance","2024-03-18T05:27:51Z","https://github.com/nuxt/nuxt/issues/18540",0.6780879,{"description":3083,"labels":3084,"number":3087,"owner":3029,"repository":3029,"state":3049,"title":3088,"updated_at":3089,"url":3090,"score":3091},"### Environment\n\n- Operating System: `Darwin`\r\n- Node Version: `v18.16.0`\r\n- Nuxt Version: `3.5.3`\r\n- Nitro Version: `2.4.1`\r\n- Package Manager: `npm@9.5.1`\r\n- Builder: `vite`\r\n- User Config: `devtools, extends`\r\n- Runtime Modules: `-`\r\n- Build Modules: `-`\n\n### Reproduction\n\nhttps://stackblitz.com/edit/nuxt-starter-msvidt?file=nuxt.config.js\n\n### Describe the bug\n\nI'm trying to extend a layer by adding the [extends] property to the nuxt.config.js:\r\n```\r\nexport default defineNuxtConfig({\r\n extends: [ 'gitlab:SaadOuadrhiri/test', ], \r\n })\r\n```\r\n\r\nbut i'm encountering this error when i run `npm run dev` :\r\n\r\n```\r\nERROR Failed to download https://gitlab.com/SaadOuadrhiri/test/-/archive/main.tar.gz: 403 Forbidden\r\n\r\n at download (/Users/Faical/Desktop/sites%20test/b2b2/node_modules/giget/dist/shared/giget.093c29e5.mjs:29:11)\r\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\r\n at async downloadTemplate (/Users/Faical/Desktop/sites%20test/b2b2/node_modules/giget/dist/shared/giget.093c29e5.mjs:244:5)\r\n at async resolveConfig (/Users/Faical/Desktop/sites%20test/b2b2/node_modules/c12/dist/index.mjs:250:20)\r\n at async extendConfig (/Users/Faical/Desktop/sites%20test/b2b2/node_modules/c12/dist/index.mjs:217:21)\r\n at async loadConfig (/Users/Faical/Desktop/sites%20test/b2b2/node_modules/c12/dist/index.mjs:159:5)\r\n at async loadNuxtConfig (/Users/Faical/Desktop/sites%20test/b2b2/node_modules/@nuxt/kit/dist/index.mjs:2447:18)\r\n at async Object.invoke (/Users/Faical/Desktop/sites%20test/b2b2/node_modules/nuxi/dist/chunks/dev.mjs:124:20)\r\n at async _main (/Users/Faical/Desktop/sites%20test/b2b2/node_modules/nuxi/dist/cli.mjs:48:20)\r\n```\n\n### Additional context\n\n_No response_\n\n### Logs\n\n_No response_",[3085,3086],{"name":3040,"color":3041},{"name":3043,"color":3044},21566,"Unable to extend layer to external repo: 403 Forbidden","2024-06-24T14:36:41Z","https://github.com/nuxt/nuxt/issues/21566",0.6847882,{"description":3093,"labels":3094,"number":3097,"owner":3029,"repository":3029,"state":3049,"title":3098,"updated_at":3099,"url":3100,"score":3101},"### Environment\r\n\r\nwindows 10\r\nnode 20.11.0\r\nnpm 10.2.4\r\nvue 3.4.15\r\nnuxt 3.10.3\r\n\r\n### Reproduction\r\n\r\n```\r\n#.env.dev\r\n\r\nGIGET_TOKEN=\"myGithubToken\"\r\nGITHUB_TOKEN=\"myGithubToken\"\r\n```\r\n\r\n```ts\r\n# nuxt.config.ts\r\n\r\nexport default defineNuxtConfig({\r\n\t...\r\n\textends: [\r\n\t\t['github:myUser/myPrivateRepo#master', { install: true, auth: process.env.GITHUB_TOKEN }]\r\n\t]\r\n})\r\n```\r\n\r\n### Describe the bug\r\n\r\nMaybe I don't understood the (short) doc about Buxt's layers but I have an error When `i npm run dev` with a Github linked layer.\r\nI try to install my project with layer autoinstall for build. Maybe I skiped something but it's really unclear.\r\n\r\n### Additional context\r\n\r\nIt's working in \"local\" when I have my 2 repos like this\r\n\r\n/my-layer\r\n/my-project\r\n\r\nwith\r\n```ts\r\n# nuxt.config.ts\r\n\r\nexport default defineNuxtConfig({\r\n\t...\r\n\textends: [\r\n\t\t'../my-layer'\r\n\t]\r\n})\r\n```\r\n\r\nbut I want to install/build my layer from Github\r\n\r\n### Logs\r\n\r\n```shell-script\r\nPS D:\\Projects\\myProject> npm run dev -o\r\n\r\n> dev\r\n> nuxt dev --dotenv env/.env.dev\r\nNuxt 3.10.3 with Nitro 2.8.1 21:00:18 \r\n ERROR Failed to download https://api.github.com/repos/myUser/myPrivateLayerRepo/tarball/master: 404 Not Found 21:00:20 \r\n\r\n at download (/D:/Projects/myProject/node_modules/giget/dist/index.mjs:31:11)\r\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\r\n at async downloadTemplate (/D:/Projects/myProject/node_modules/giget/dist/index.mjs:302:5)\r\n at async resolveConfig (/D:/Projects/myProject/node_modules/c12/dist/index.mjs:288:20)\r\n at async extendConfig (/D:/Projects/myProject/node_modules/c12/dist/index.mjs:241:21)\r\n at async loadConfig (/D:/Projects/myProject/node_modules/c12/dist/index.mjs:176:5)\r\n at async loadNuxtConfig (/D:/Projects/myProject/node_modules/@nuxt/kit/dist/index.mjs:2516:18)\r\n at async Object.run (/D:/Projects/myProject/node_modules/nuxi/dist/chunks/dev.mjs:171:25)\r\n at async runCommand$1 (/D:/Projects/myProject/node_modules/nuxi/dist/shared/nuxi.a9f3bca7.mjs:1648:16)\r\n at async runCommand$1 (/D:/Projects/myProject/node_modules/nuxi/dist/shared/nuxi.a9f3bca7.mjs:1639:11)\r\n at async runMain$1 (/D:/Projects/myProject/node_modules/nuxi/dist/shared/nuxi.a9f3bca7.mjs:1777:7)\r\n\r\n\r\n\r\n ERROR Failed to download https://api.github.com/repos/myUser/myPrivateLayerRepo/tarball/master: 404 Not Found\r\n```\r\n```\r\n",[3095,3096],{"name":3040,"color":3041},{"name":3043,"color":3044},26497,"Nuxt3 - Layer on Github","2024-03-26T20:55:15Z","https://github.com/nuxt/nuxt/issues/26497",0.6889563,{"description":3103,"labels":3104,"number":3119,"owner":3029,"repository":3029,"state":3049,"title":3120,"updated_at":3121,"url":3122,"score":3123},"### Environment\n\n------------------------------\r\n- Operating System: `Windows_NT`\r\n- Node Version: `v16.19.0`\r\n- Nuxt Version: `3.0.0`\r\n- Nitro Version: `1.0.0`\r\n- Package Manager: `npm@9.2.0`\r\n- Builder: `vite`\r\n- User Config: `extends`\r\n- Runtime Modules: `-`\r\n- Build Modules: `-`\r\n------------------------------\n\n### Reproduction\n\n[https://github.com/chrisfoss1/nuxt-extends-bug-repro](https://github.com/chrisfoss1/nuxt-extends-bug-repro)\n\n### Describe the bug\n\nIn the nuxt config, adding a nuxt application via `https://` to the `extends` key and then building throws the error:\r\n```\r\nERROR Failed to download template from https: Failed to download //github.com/madebyfabian/madebyfabian.git template info from https://raw.githubusercontent.com/unjs/giget/main/templates///github.com/madebyfabian/madebyfabian.git.json: 404 Not Found\r\n```\n\n### Additional context\n\nIt appears to be trying to grab a template from https://github.com/unjs/giget.\r\nhttps://nuxt.com/docs/guide/going-further/layers omits any examples with `https://`\r\nAccording to https://nuxt.com/docs/api/configuration/nuxt-config#extends, `https://` should be supported.\r\n\r\nAlthough the provided reproduction uses a github repository, which is a supported provider with the `github:` prefix, I originally encountered this bug while trying to extend from a private repository on Azure.\n\n### Logs\n\n_No response_",[3105,3108,3111,3112,3113,3116],{"name":3106,"color":3107},"enhancement","8DEF37",{"name":3109,"color":3110},"good first issue","fbca04",{"name":3040,"color":3041},{"name":3046,"color":3047},{"name":3114,"color":3115},"🍰 p2-nice-to-have","0E8A16",{"name":3117,"color":3118},"layers","006B75",19117,"support extending from git","2023-12-24T20:47:53Z","https://github.com/nuxt/nuxt/issues/19117",0.68946815,{"description":3125,"labels":3126,"number":3131,"owner":3029,"repository":3029,"state":3049,"title":3132,"updated_at":3133,"url":3134,"score":3135},"### Version\n\n[v2.4.0](https://github.com/nuxt.js/releases/tag/v2.4.0)\n\n### Reproduction link\n\n[https://nuxtjs.org/](https://nuxtjs.org/)\n\n### Steps to reproduce\n\nI want to deploy my Nuxt.js project on Gitlab. I did that many times in the past following the documentation. It always worked because my projects were used to be located in the root folder. I mean `namespace.gitlab.io/myProjectName` is how I navigate to my project and in my **nuxt.config.js** I simply give the name of my project as a value to the **base** key:\n\n router: {\n base: '/myProjectName/'\n },\n\nBut now I have a root folder in which I had to move one of my projects. I mean I should be able to navigate to my project via: `namespace.gitlab.io/myFolder/myProjectName`. The above settings do not work anymore, so I changed them to:\n\n router: {\n base: '/myFolder/myProjectName/'\n },\n\nBut this is not working either.\nDo you know how to fix this?\n\n### What is expected ?\n\nI expect to sucessfully deploy the Nuxt.js app on Gitlab and navigate to the pages\n\n### What is actually happening?\n\nFull job error message:\n\n\n $ npm run generate\n\n > removeit@1.0.0 generate /builds/namespace/myFolder/myProjectName\n > nuxt generate\n \n [10:22:08] [FATAL]\n \n ╭────────────────────────╮\n │ │\n │ ✖ Nuxt Fatal Error │\n │ │\n │ │\n │ │\n ╰────────────────────────╯\n \n npm ERR! code ELIFECYCLE\n npm ERR! errno 1\n npm ERR! removeit@1.0.0 generate: `nuxt generate`\n npm ERR! Exit status 1\n npm ERR! \n npm ERR! Failed at the removeit@1.0.0 generate script.\n npm ERR! This is probably not a problem with npm. There is likely additional logging output above.\n \n npm ERR! A complete log of this run can be found in:\n npm ERR! /root/.npm/_logs/2019-02-04T10_22_08_275Z-debug.log\n ERROR: Job failed: exit code 1\n \n \n \n\n### Additional comments?\n\nSorry I can not provide a proper link given my context.\nBillal Begueradj.\n\n\u003C!--cmty-->\n\u003Cdiv align=\"right\">\u003Csub>\u003Cem>This bug report is available on \u003Ca href=\"https://cmty.app/nuxt\">Nuxt\u003C/a> community (\u003Ca href=\"https://cmty.app/nuxt/nuxt.js/issues/c8605\">#c8605\u003C/a>)\u003C/em>\u003C/sub>\u003C/div>",[3127,3128],{"name":3043,"color":3044},{"name":3129,"color":3130},"2.x","d4c5f9",4947,"Nuxt deployment on Gitlab when the project is not on the root folder","2023-01-22T15:33:01Z","https://github.com/nuxt/nuxt/issues/4947",0.69456476,{"description":3137,"labels":3138,"number":3145,"owner":3029,"repository":3029,"state":3049,"title":3146,"updated_at":3147,"url":3148,"score":3149},"### Environment\n\n- Operating System: `Darwin`\r\n- Node Version: `v18.15.0`\r\n- Nuxt Version: `3.3.1`\r\n- Nitro Version: `2.3.2`\r\n- Package Manager: `npm@9.5.0`\r\n- Builder: `vite`\r\n- User Config: `extends`\r\n- Runtime Modules: `-`\r\n- Build Modules: `-`\n\n### Reproduction\n\nhttps://stackblitz.com/edit/github-ewxmt8?file=nuxt.config.ts\n\n### Describe the bug\n\nReceived error when ran `npm run dev`\r\n\r\n`node:9) [DEP0147] DeprecationWarning: In future versions of Node.js, fs.rmdir(path, { recursive: true }) will be removed. Use fs.rm(path, { recursive: true }) instead\r\n(Use `node --trace-deprecation ...` to show where the warning was created)`\r\n\r\n`Failed to download https://gitlab.com/dextersiah/nuxt-base/-/archive/main.tar.gz: 406 Not Acceptable`\r\n\r\nInitially attempted to try with private repository and encountered the error. Then proceed to set repo to public and attempted once again. However still receiving the same error\n\n### Additional context\n\n_No response_\n\n### Logs\n\n_No response_",[3139,3140,3141,3142,3144],{"name":3040,"color":3041},{"name":3020,"color":3021},{"name":3046,"color":3047},{"name":3143,"color":3060},"🔨 p3-minor",{"name":3117,"color":3118},19882,"Unable to extend layer to external repo: 406 Not Acceptable","2024-01-22T16:27:30Z","https://github.com/nuxt/nuxt/issues/19882",0.70861894,{"labels":3151,"number":3154,"owner":3029,"repository":3029,"state":3049,"title":3155,"updated_at":3156,"url":3157,"score":3158},[3152,3153],{"name":3043,"color":3044},{"name":3129,"color":3130},7745,"build error","2023-01-22T15:36:04Z","https://github.com/nuxt/nuxt/issues/7745",0.7108753,["Reactive",3160],{},["Set"],["ShallowReactive",3163],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fr2LQwJrViMWzrgUYwfoceun1D3AFEcATSeXdKRccUkQ":-1},"/nuxt/nuxt/25145"]