Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: Invalid argument(s): A directory corresponding to fileSystemPath "public" could not be found [dart_frog as sub-package] #81

Closed
1 task done
Nikoro opened this issue Apr 29, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Nikoro
Copy link

Nikoro commented Apr 29, 2024

Is there an existing issue for this?

  • I have searched the existing issues.

CLI Version

v0.0.10

Project ID

55aaee1f-fe1b-4016-a9b7-16c2c25b86da

Description

I've got this project structure:

project
-backend
--public
-frontend
-shared

3 dart packages, where backend is package with dart_frog server

After deploying it successfully using:

globe deploy

I've got this error in globe logs:

Invalid argument(s): A directory corresponding to fileSystemPath "public" could not be found

I was able to reproduce it locally running:

project % dart backend/build/bin/server.dart

The issue is that this code is run from root directory project

When I run it like this:

project % cd backend && dart build/bin/server.dart

Everything works fine.

The issue is I cannot do setup this in Globe settings. Because I can only pass path to entrypoint and cannot execut custom run code.

Steps to reproduce

I've got this project structure:

project
-backend
--public
-frontend
-shared

3 dart packages, where backend is package with dart_frog server

After deploying it successfully using:

globe deploy

I've got this error in globe logs:

Invalid argument(s): A directory corresponding to fileSystemPath "public" could not be found

I was able to reproduce it locally running:

project % dart backend/build/bin/server.dart

The issue is that this code is run from root directory project

When I run it like this:

project % cd backend && dart build/bin/server.dart

Everything works fine.

The issue is I cannot do setup this in Globe settings. Because I can only pass path to entrypoint and cannot execut custom run code.

Expected behavior

After deploying it successfully using:

globe deploy

Ther should be no error.

Screenshots

image

image

Additional context and comments

No response

@Nikoro Nikoro added the bug Something isn't working label Apr 29, 2024
@lesnitsky
Copy link
Contributor

duplicate #38

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants