augmented-realityaframe8thwall-xr8thwall-web

8th wall web app setup child compilation failed


I am new to 8th wall. I have cloned 8th wall web from git and executed below steps properly

# cd <directory_where_you_saved_sample_project_files>
# cd serve
# npm install
# cd ..
# ./serve/bin/serve -d <sample_project_location>

but on execution of last step which is for ex.

./serve/bin/serve -n -d gettingstarted/xraframe/ -p 7777

I am getting below errors

Failed to compile.

Error: Child compilation failed: Entry module not found: Error: Can't resolve 'C:\8thWall_Project\web\serve\bin\gettingstarted\xraframe" \index.html' in 'C:\8thWall_Project\web\serve': Error: Can't resolve 'C:\8thWall_Project\web\serve\bin\gettingstarted\xraframe" \index.html' in 'C:\8thWall_Project\web\serve'

  • compiler.js:79 childCompiler.runAsChild [serve]/[html-webpack-plugin]/lib/compiler.js:79:16

  • Compiler.js:306 compile [serve]/[webpack]/lib/Compiler.js:306:11

  • Compiler.js:631 hooks.afterCompile.callAsync.err [serve]/[webpack]/lib/Compiler.js:631:15

  • Hook.js:154 AsyncSeriesHook.lazyCompileHook [serve]/[tapable]/lib/Hook.js:154:20

  • Compiler.js:628 compilation.seal.err [serve]/[webpack]/lib/Compiler.js:628:31

  • Hook.js:154 AsyncSeriesHook.lazyCompileHook [serve]/[tapable]/lib/Hook.js:154:20

  • Compilation.js:1325 hooks.optimizeAssets.callAsync.err [serve]/[webpack]/lib/Compilation.js:1325:35

Any idea or pointers what is missing?

Thanks


Solution

  • I don't know why, but bat file don't want to be opened by path. Just go to the serve\bin directory and launch bat from here, like that:

    enter image description here

    7777 is unnecessary. problem was, that it can't find path to your xraframe project, as you are in another directory, so you have to go tow directories up in ypur path for xraframe