Skip to content

the synax of loader can not been resolved by jest #70

Open
@yunnysunny

Description

 Cannot find module 'web-worker:./worker.ts' from 'src/utils/task.ts'

    Require stack:
      src/utils/task.ts
      src/utils/index.ts
      src/index.ts
      test/get-url.test.ts

       5 | // eslint-disable-next-line @typescript-eslint/ban-ts-comment    
       6 | // @ts-ignore
    >  7 | import DataWorker from 'web-worker:./worker.ts'
         | ^
       8 |
       9 | import { Options } from '../../interfaces'
      10 |

      at Resolver.resolveModule (node_modules/jest-resolve/build/resolver.js:324:11)
      at Object.<anonymous> (src/utils/task.ts:7:1)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions