R
Railway4mo ago
Mads

Build fails (Nuxt 3)

I have a sort of monorepo that looks like this: ├── base/ │ ├── index.js │ └── package.json │ └── ... └── extended/ ├── index.js └── package.json └── ... I am using Nuxt 3 with layers (https://nuxt.com/docs/getting-started/layers) When I want to build extended, it has references to files in the base directory. e.g: import foo from './base/xxx.ts' Locally this works fine. But when deploying on Railway it can't find these references. How do I define the base directory? Also when defining a base directory, will it be able to find the references? How would my nixpacks.toml look?
Nuxt
Layers · Get Started with Nuxt
Nuxt provides a powerful system that allows you to extend the default files, configs, and much more.
3 Replies
Percy
Percy4mo ago
Project ID: 01e02e33-63bf-47ee-85c1-f4641c43268b
Mads
Mads4mo ago
01e02e33-63bf-47ee-85c1-f4641c43268b
Brody
Brody4mo ago
can you please share the exact error you're getting?