Skip to content

worker Using worker in Vue and Typescript, Unable to use web worker ??? #10991

@wangzhiyao66

Description

@wangzhiyao66

Version

2.6.10

Reproduction link

https://github.com/wangzhiyao66/my-worker.git

Steps to reproduce

An error occurred while using the following code in the script

let worker = new Worker('../../static/webworker.js');

What is expected?

Normal use web worker

What is actually happening?

Uncaught SyntaxError: Unexpected token '<'
Cause unexpected end


I need your help to solve this problem. Thank you very much

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions