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.

Svelte App in subdirectory

See original GitHub issue

Describe the bug The functions folder is not correctly resolved relative to firebase.json, when the Svelte app is placed in a subdirectory.

> ENOENT: no such file or directory, open 'functions/package.json'

The example in the README does not work.

To Reproduce

  1. Place the Svelte Kit application in subfolder, e.g. svelte_app.
  2. Configure Svelte adapter adapter: firebaseAdapter({ firebaseJson: "../firebase.json" }),

Expected behavior package.json should be looked for at ../functions/package.json instead of functions/package.json.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

jthegeduscommented, May 6, 2021

Ah, yes, you’re correct. I am addressing this now treating the firebase.json as the root. Watch for the next release.

lschmierercommented, May 6, 2021

If i remember correctly, the hosting deployment folder was resolved relative to the svelte project instead of relative to the firebase.json file.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I host a Svelte app in a subdirectory? - Stack Overflow
When I upload the Svelte export to this subdirectory of the web server, it reads from the console that it cannot find ......
Read more >
Hosting sveltekit app in a subdirectory : r/sveltejs - Reddit
I've got an app that I'd like to host in a subdirectory of my site (e.g. ). However, when I place my...
Read more >
Routing • Docs • SvelteKit
At the heart of SvelteKit is a filesystem-based router. The routes of your app — i.e. the URL paths that users can access...
Read more >
Deployment and next steps - Learn web development | MDN
Objective: Learn how to prepare our Svelte app for production, and what learning ... Since our app will be published at a subdirectory...
Read more >
The page routes of a SvelteKit app are defined by files and directories inside ... Nested subdirectories under src/routes define routes at URL...
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 Post

No results found

github_iconTop Related Hashnode Post

No results found