Error import socket io


I try to use client but i’v got ERROR: ‘import’ and ‘export’ may only appear at the top level

// ES6 import or TypeScript
import { io } from "";
// CommonJS
const io = require("");

What i do is to install from npm install n8n [email protected]
then i add in ma env VAR :,

have an idea ?

Hey @Jeremy_Bepoix, are you also getting an error when using the CommonJS syntax from your snippet (const io = require("");)? That way you wouldn’t be using import.

same issue