Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Unable to resolve module ./worker.thread from ``: #125

Open
nguyenvanquan7826 opened this issue Apr 23, 2021 · 5 comments
Open

Error: Unable to resolve module ./worker.thread from ``: #125

nguyenvanquan7826 opened this issue Apr 23, 2021 · 5 comments

Comments

@nguyenvanquan7826
Copy link

I try to create two file worker.thread.js with same content.

  • 1 file same folder with App.js
  • 1 file same folder with process data file (processData.js)

I call: const thread = new Thread('./worker.thread.js'); from processData.js, but it show error Unable to resolve module ./worker.thread.

Please help me.

@martinop
Copy link

same here

@h2soheili
Copy link

in release ipa, u can try this thread js bundle resolver

@OzymandiasTheGreat
Copy link

For anyone else who runs into this, in dev mode bundler only picks up js files in project root. So just do new Thread("../worker.js").

@jayce-incognito
Copy link

same here

@jacobp100
Copy link

I have my index.thread.js in the top level of the project (with the package.json), and just run new Thread('index.thread.js')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants