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

Generic build pac misidentified node project as python #480

Open
rasmus-storjohann-PG opened this issue Dec 30, 2024 · 0 comments
Open

Generic build pac misidentified node project as python #480

rasmus-storjohann-PG opened this issue Dec 30, 2024 · 0 comments

Comments

@rasmus-storjohann-PG
Copy link

I have a node project using remix.js.

When I try to deploy it on GCR using the general build pack for Go, Node.js, Python, Java, .NET Core, Ruby or PHP, I get this error Buildpack": missing main.py and GOOGLE_FUNCTION_SOURCE not specified. Either create the function in main.py or specify GOOGLE_FUNCTION_SOURCE to point to the file that contains the function.

It looks like the build pack has erroneously concluded that my project is a python project.

I have the following files that ought to lead it to conclude it's a node/JS project:

  • node_modules
  • package-lock.json
  • package.json, containing the following scripts:
    • build
    • dev
    • I don't have a start script, is that the issue?
  • server.js
  • tsconfig.json
  • vite.config.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant