hapijs / nes

WebSocket adapter plugin for hapi routes
Other
502 stars 87 forks source link

Can't resolve '@hapi/nes/client' #280

Closed genediazjr closed 5 years ago

genediazjr commented 5 years ago

I'm using webpack and have upgraded to using the new @hapi directive This works

const client = require('nes/client');

This can't resolve '@hapi/nes/client'

const client = require('@hapi/nes/client');
dominykas commented 5 years ago

Can you try require('@hapi/nes/lib/client');?

dominykas commented 5 years ago

I can see the docs might need an update (or actual client exposed).

genediazjr commented 5 years ago

@dominykas I get Unexpected token: punc «)»

hueniverse commented 5 years ago

@genediazjr you will need to configure your webpack setup to properly convert the client code to whatever JS version you support.

lock[bot] commented 4 years ago

This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.