Skip to content

Is it possible to use this library with webpack? #5

@Krasnov8953

Description

@Krasnov8953

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions