question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Custom output and srcDir dirs. Build and Generate commands failed

See original GitHub issue

Environment


  • Operating System: Linux
  • Node Version: v16.14.0
  • Nuxt Version: 3.0.0-rc.8
  • Package Manager: yarn@1.22.17
  • Builder: vite
  • User Config: modules, vite, css, tailwindcss, nitro, root
  • Runtime Modules: @nuxtjs/tailwindcss@5.3.2, @vueuse/nuxt@9.1.0
  • Build Modules: -

Describe the bug

I’m trying to use the changed project structure, but after a series of recent updates, the build and generate commands stopped running

Project structure

nuxt.config.ts
import { defineNuxtConfig } from 'nuxt';
import modulesConfig from './configs/nuxt.modules.config';

export default defineNuxtConfig({
	...modulesConfig,
	nitro: {
		output: {
			dir: '~~/build',
		},
	},
	srcDir: './src',
});

in dev mode all works fine, but when i’m trying to build or generate i get this errors:

yarn generate

yarn build


i’m working at private project but if u need i can give u access to repository…

Additional context

No response

Logs

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
mihail727commented, Aug 15, 2022

https://stackblitz.com/edit/github-wcnwfc?file=src%2Fapp.vue,src%2Flayouts%2Fdefault.vue,package.json Looks normal

ok… then i dont know what a problem… maybe my OS? sorry

0reactions
mihail727commented, Aug 15, 2022

i just move my project to home/supp/Dev/adrenaline-swap and enough

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to add include paths to headers generated ... - GitHub
My use case is to include generated headers from mavgen.py (mavlink generator) script. It generates headers on subdirectories and I can ...
Read more >
How to write a Makefile with separate source and header ...
List your source and build output directories: ... When you got this error" ... all source files SOURCES := $(wildcard $(SRCDIR)/*.cpp) # list...
Read more >
Installing GCC: Configuration - GNU Project
First, we highly recommend that GCC be built into a separate directory from the sources which does not reside within the source tree....
Read more >
makepkg - ArchWiki
To build a package, one must first create a PKGBUILD, or build script, ... files and directories, such as files extracted to the...
Read more >
Command-line commands - The Meson Build system
Meson is invoked using the following syntax: meson [COMMAND] [COMMAND_OPTIONS] ... --errorlogs Whether to print the logs from failing tests --install-umask ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found