Serp Dev note working since update to n8n V1.44.1
Serper is not a constructor [line 2]
Error details
Other info
Item Index
0
n8n version
1.44.1 (Self Hosted)
Time
6/15/2024, 5:29:41 PM
Error cause
{ "description": "TypeError", "lineNumber": 2, "message": "Serper is not a constructor [line 2]" }
Serp.Dev
Parameters
Settings
Code
Supply Data
JavaScript - Supply Data
1
2
const { Serper } = require(‘langchain/tools’);
return new Serper(‘deletedapikey’);
This code will only run and return data if an output got created which is not “Main”.
You can import LangChain and use all available functionality. Debug by using console.log()
statements and viewing their output in the browser console.
Inputs
Currently no items exist
Add Input
Outputs
Type
Add Output
I wish this node would…
Error in sub-node ‘Serp.Dev‘
Serper is not a constructor [line 2] Open node