第 8 面墙 Web 应用程序设置子编译失败

8th wall web app setup child compilation failed

我是第 8 面墙的新手。我已经从 git 克隆了 8th wall web 并正确执行了以下步骤

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

但是在执行最后一步时

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

我遇到以下错误

Failed to compile.

Error: Child compilation failed: Entry module not found: Error: Can't resolve 'C:thWall_Project\web\serve\bin\gettingstarted\xraframe" \index.html' in 'C:thWall_Project\web\serve': Error: Can't resolve 'C:thWall_Project\web\serve\bin\gettingstarted\xraframe" \index.html' in 'C:thWall_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

任何想法或指示缺少什么?

谢谢

您似乎是在 Windows 计算机上尝试此操作。 Windows 的服务过程与 macOS 略有不同。

使用 serve.bat 可执行文件而不是正常的服务脚本。

serve\bin\serve.bat -n -d gettingstarted\xraframe -p 7777

https://docs.8thwall.com/web/#locally-from-windows

不知道为什么,bat文件不想按路径打开。只需转到 serve\bin 目录并从这里启动 bat,就像这样:

7777 是不必要的。问题是,它找不到你的 xraframe 的路径 项目,因为你在另一个目录中,所以你必须在 xraframe

的 ypur 路径中向上拖目录