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

Support for Node 18 #238

Open
PasinduDG opened this issue Oct 3, 2024 · 0 comments
Open

Support for Node 18 #238

PasinduDG opened this issue Oct 3, 2024 · 0 comments

Comments

@PasinduDG
Copy link

In my package.json inside functions directory I have defined Engine compatibility to Node 18

"engines": {
    "node": "18"
},

I have defined .nvmrc file with 18.18.1, then using it in the actions as below

          - name: Set up Node.js if required
            uses: actions/setup-node@v4
            with:
              node-version-file: '.nvmrc'

          - name: Installing node modules
            run: yarn
    
          - name: Deploy Firebase functions
            uses: w9jds/[email protected]
            with:
              args: deploy --force --only functions
            env:
              GCP_SA_KEY: ${{ secrets.FIREBASE_SERVICE_ACCOUNT }}
              PROJECT_ID: ${{ secrets.FIREBASE_PROJECT_ID }}
              RESOURCE_DIR: .

I'm getting the following error

setting firebase project to ***
Now using project ***
=== Deploying to '***'...
i  deploying functions
Running command: yarn --cwd "$RESOURCE_DIR"
yarn install v1.22.22
[1/5] Validating package.json...
error functions@: The engine "node" is incompatible with this module. Expected version "18". Got "20.15.0"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
Error: functions predeploy error: Command terminated with non-zero exit code 1

Does the action no longer support NodeJS 18 anymore ?

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