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

jx mt package - Cannot find module #709

Closed
ktrzeciaknubisa opened this issue Dec 10, 2015 · 1 comment
Closed

jx mt package - Cannot find module #709

ktrzeciaknubisa opened this issue Dec 10, 2015 · 1 comment
Assignees

Comments

@ktrzeciaknubisa
Copy link
Member

I'm running .jx file multi-threaded and once in a while I get e.g.

run 1
run 2
restarting thread 1 due to error Error: Cannot find module './test.js'
run 3
restarting thread 1 due to error Error: Cannot find module './test.js'
run 4
run 5
run 6
restarting thread 1 due to error Error: Cannot find module './test.js'
run 7
run 8
restarting thread 1 due to error Error: Cannot find module './test.js'
run 9
restarting thread 1 due to error Error: Cannot find module './test.js'
run 10

This occurs also for previous jxcore versions, e.g. 0.3.0.7 (both SM / V8). I'm going to take a look at it.

Reproduction

  1. index.js = require('./test.js');
  2. test.js = may be empty
  3. jx package index.js -add test.js
  4. move index.jx to separate folder
  5. run jx mt index.jx
@ktrzeciaknubisa
Copy link
Member Author

Ok, the above commit seems to do the trick.

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

1 participant