react-use-comlink icon indicating copy to clipboard operation
react-use-comlink copied to clipboard

Unexpected token '<'

Open RockinRonE opened this issue 4 years ago • 2 comments

I created a simple object similar to the example:

import { expose } from 'comlink'

export const SortWorker = {
  hello: 'world',
  sort() {
    return 'sort worker ran!'
  },
}

expose(SortWorker)

But I see this in the console: Uncaught SyntaxError: Unexpected token '<'

I am using create-react-app with hooks.

RockinRonE avatar Jul 03 '20 22:07 RockinRonE