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 when HXML targets a directory that does not exist #40

Open
jgranick opened this issue Dec 19, 2017 · 4 comments
Open

Error when HXML targets a directory that does not exist #40

jgranick opened this issue Dec 19, 2017 · 4 comments

Comments

@jgranick
Copy link

I was going to report this on haxe-loader, but based on the stack trace, I think it occurs from haxe-modular:

webpack: wait until bundle finished: /
Parsed in: 60ms
Stats: 47 types, 25 references
Graph processed in: 8ms
Bundling...
Extract common chunks...
Moved 0 common chunks (0 shared)
fs.js:948
  binding.stat(pathModule._makeLong(path));
          ^

Error: ENOENT: no such file or directory, stat 'C:\Development\JS\openfl-js\samples\haxe\DisplayingABitmap\tmp'
    at Object.fs.statSync (fs.js:948:11)
    at Object.Main.run.$hx_exports.run (C:\Development\JS\openfl-js\samples\haxe\DisplayingABitmap\node_modules\haxe-modular\tool\bin\split.js:734:17)
    at processOutput (C:\Development\JS\openfl-js\samples\haxe\DisplayingABitmap\node_modules\haxe-loader\index.js:75:27)
    at exec (C:\Development\JS\openfl-js\samples\haxe\DisplayingABitmap\node_modules\haxe-loader\index.js:53:27)
    at ChildProcess.exithandler (child_process.js:267:7)
    at emitTwo (events.js:126:13)
    at ChildProcess.emit (events.js:214:7)
    at maybeClose (internal/child_process.js:925:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)

...changing the HXML to target a directory that has already been created works great, so perhaps there is a way to create the output directory if it does not exist (similar to the Haxe compiler)?

Thanks 😁

@elsassph
Copy link
Owner

Is it the -js output?

@elsassph
Copy link
Owner

elsassph commented Mar 3, 2018

That should be fixed in 0.10.2

@kLabz
Copy link

kLabz commented Dec 4, 2019

This happens for Reporter too

Error: ENOENT: no such file or directory, open '.build/index.js.stats.json'
    at Object.openSync (fs.js:440:3)
    at Object.writeFileSync (fs.js:1281:35)
    at Reporter.save (.../node_modules/haxe-modular/tool/bin/split.js:1606:14)

@elsassph
Copy link
Owner

elsassph commented Dec 4, 2019

Ugh I thought I had fixed that.

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

No branches or pull requests

3 participants