Hey,
I am trying to make new node, with this tutorial:
I am now at sub point 3 and all looks cool for me:
But when I go to localhost:8080 it says:
I had same problem before: API-Server can not be reached. It is probably down that time I did not use command npm run build
but now I am using those command ;/
My changes
I made file packages/nodes-base/nodes/Wordnik/Wordnik.node.ts:
import {
IExecuteFunctions,
} from 'n8n-core';
import {
IDataObject,
INodeExecutionData,
INodeType,
INodeTypeDescription,
} from 'n8n-workflow';
import {
OptionsWithUri,
} from 'request';
export class FriendGrid implements INodeType {
description: INodeTypeDescription = {
displayName: 'Wordnik',
name: 'wordnik',
icon: 'file:Wordnik.png',
group: ['transform'],
version: 1,
description: 'API for fetching words',
defaults: {
name: 'Wordnik',
color: '#f7921f',
},
inputs: ['main'],
outputs: ['main'],
credentials: [
],
properties: [
// Node properties which the user gets displayed and
// can change on the node.
],
};
async execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]> {
return [[]];
}
}
And icon Wordnik.node.ts/Wordnik.png
and added line 647 (inside array nodes):
"dist/nodes/Wordnik/Wordnik.node.js",
Any idea what I did wrong?
Thank you in advance