am following socketio with adonisjs to be able to implement web sockets but I get this error
[ info ]  building project...
[ info ]  starting http server...
SyntaxError: Cannot use import statement outside a module
at /home/../providers/AppProvider.ts(anonymous):18
13    }
14  
15    public async ready () {
16      // App is ready
17      if (this.app.environment === 'web') {
18        await import('../start/socket')
19  
20      }
21    }
22  
23    public async shutdown () {
[ encore ] Running webpack-dev-server ...
[ warn ]  Underlying HTTP server died with "0 code"
when I try out this solution of adding "type": "module", to package.json I get other errors
how can I fix this?
 
    