I have an error wile importing lib like this in angular 9 project
import * as io from 'socketio-shared-webworker';
or
const wio = require('socketio-shared-webworker');
Module parse failed: Unexpected token (9:15)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| class SharedWorkerSocketIO {
|
> WorkerType = global.SharedWorker || global.Worker
| worker = null
| workerUri = null
i 「wdm」: Failed to compile.