question-mark
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.

TypeError: (intermediate value).run is not a function

See original GitHub issue

This is a:

  • Feature request or change
  • Bug report

For bug reports:

Expected behavior

Frontend is deployed to AWS when running ‘serverless client deploy’.

Actual behavior

Frontend is not deployed, with the following error: Serverless: Configuration warning at ‘functions.api.events[0].http’: value ‘ANY {proxy+}’ does not satisfy pattern /^(?:*|(GET|POST|PUT|PATCH|OPTIONS|HEAD|DELETE|ANY) (/\S*))$/i Serverless:
Serverless: Learn more about configuration validation here: http://slss.io/configuration-validation Serverless:
Serverless: This deployment will: Serverless: - Upload all files from ‘public’ to bucket ‘bucketName’ undefined Serverless: - Set (and overwrite) bucket ‘bucketName’ configuration Serverless: - Set (and overwrite) bucket ‘bucketName’ bucket policy Serverless: - Set (and overwrite) bucket ‘bucketName’ CORS policy

Serverless Error ----------------------------------------

TypeError: (intermediate value).run is not a function

Get Support -------------------------------------------- Docs: docs.serverless.com Bugs: github.com/serverless/serverless/issues Issues: forum.serverless.com

Your Environment Information --------------------------- Operating System: darwin Node Version: 14.18.2 Framework Version: 2.69.1 (local) Plugin Version: 5.5.1 SDK Version: 4.3.0 Components Version: 3.18.1

Serverless: Deprecation warning: Resolution of lambda version hashes was improved with better algorithm, which will be used in next major release. Switch to it now by setting “provider.lambdaHashingVersion” to “20201221”. While it is highly encouraged to upgrade to new algorithm, you can still use the old approach by setting “provider.lambdaHashingVersion” to “20200924”. More Info: https://www.serverless.com/framework/docs/deprecations/#LAMBDA_HASHING_VERSION_V2

Steps to reproduce

  • Operating system: See above (Mac OS 11.6.1)
  • serverless-finch version: 2.8.0 (as defined in package.json file)
  • serverless.yml that produces bug:

service: serviceName

provider: name: aws runtime: nodejs14.x memorySize: 2048 timeout: 60 stage: prod region: us-east-2

functions: api: handler: lambda.handler events: - http: ANY {proxy+} - http: ANY /

plugins:

  • serverless-finch

custom: client: bucketName: bucketName distributionFolder: folderName # [other configuration parameters]

  • Command that produces bug:

‘serverless client deploy’ (or in my case: ‘npm run deployfrontend’)

  • Other details:

npm (global?) version: 6.14.15 npm (local?) version: 8.3.0 (as defined in package.json file)

I scanned my prior commits and noticed I was previously running npm local version 7.24.2 and serverless-finch 2.6.0. When I rolled back to these versions, the bug went away.

I’m running serverless version 2.64.1.

No idea if this is actually a bug, or just a version compatibility issue. Either way, any insight would be greatly appreciated. Thank you.


Issue Analytics

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

github_iconTop GitHub Comments

7reactions
jaredchucommented, Dec 30, 2021

The issue is in confirm code, currently we can avoid it using --no-confirm option:

serverless client deploy --no-confirm
0reactions
Shereefcommented, Feb 26, 2022

@johnzoet tested this and it has been resolved

Please open another issue if you have any more concerns

V3.0.0 is already released and can be used

Read more comments on GitHub >

github_iconTop Results From Across the Web

Uncaught TypeError: (intermediate value)(...) is not a function
I believe this is because an arrow function is a property in the object, while a method is a property in the prototype....
Read more >
TypeError: (intermediate value).then is not a function - Reddit
I want to create a function that checks if a database exists in mongodb and if not, creates it. But I get this...
Read more >
typeerror: (intermediate value) is not a function - You.com
The "TypeError: (intermediate value)(...) is not a function" error occurs when we forget to place a semicolon between a function declaration and an...
Read more >
Uncaught TypeError: (intermediate value)(...) is not a function
JavaScript : Uncaught TypeError : ( intermediate value )(...) is not a function [ Gift : Animated Search Engine : https://bit.ly/AnimSearch ] ...
Read more >
Uncaught TypeError: (intermediate value)(...) is not a function
This means that without that semicolon, the anonymous window.Glog function was being invoked with a function as the msg parameter, followed by ( ......
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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found