Following https://developer.moovweb.com/guides/starter results in an error:
Error: ENOENT: no such file or directory, stat '/Users/howard.ross/Repos/philo-test-2/dist/service-worker.js'
at Object.statSync (fs.js:1016:3)
Steps to reproduce and output:
➜ npm create xdn-app@latest
npx: installed 170 in 7.656s
✔ Enter a name for your app … philo-test-2
✔ Select an app template › Default starter template
✔ Enter the hostname for the origin site (e.g. domain.com) … philosophy.com
✔ Which package manager would you like to use? › npm
✔ Downloading Default starter template XDN template... done.
✔ Installing dependencies... done.
XDN app created! Run the following to start your app in development mode:
cd philo-test-2
npm start
To deploy your app on the Moovweb XDN, run:
npm run deploy
➜ cd philo-test-2
➜ npm run deploy
> philo-test-2@ deploy /Users/howard.ross/Repos/philo-test-2
> xdn deploy
🔑 Authenticated as howard.ross@moovweb.com on https://moovweb.app
fatal: not a git repository (or any of the parent directories): .git
You have uncommitted changes. No commit URL will be stored in moovweb.app.
📋 Deploying to:
> team=Private space
> site=philo-test-2
> environment=default
> xdn-version=2.15.0
⌛ Initializing...
> Deployment #1
> Since this is the first deployment to the default environment, it will take longer than subsequent deployments.
done (21491ms)
🛠️ Building your app for deployment on the MOOVWEB XDN
> Bundling ./src/routes.ts and xdn.config.js... done.
Error: Project build failed
Error: ENOENT: no such file or directory, stat '/Users/howard.ross/Repos/philo-test-2/dist/service-worker.js'
at Object.statSync (fs.js:1016:3)
at Object.statSync (/Users/howard.ross/Repos/philo-test-2/node_modules/graceful-fs/polyfills.js:307:34)
at getStatsSync (/Users/howard.ross/Repos/philo-test-2/node_modules/fs-extra/lib/util/stat.js:58:18)
at Object.checkPathsSync (/Users/howard.ross/Repos/philo-test-2/node_modules/fs-extra/lib/util/stat.js:90:33)
at Object.copySync (/Users/howard.ross/Repos/philo-test-2/node_modules/fs-extra/lib/copy-sync/copy-sync.js:24:38)
at DeploymentBuilder.copySync (/Users/howard.ross/Repos/philo-test-2/node_modules/@xdn/core/deploy/DeploymentBuilder.js:239:27)
at DeploymentBuilder.addStaticAsset (/Users/howard.ross/Repos/philo-test-2/node_modules/@xdn/core/deploy/DeploymentBuilder.js:170:14)
at /Users/howard.ross/Repos/philo-test-2/node_modules/@xdn/core/deploy/DeploymentBuilder.js:364:39
at Array.forEach (<anonymous>)
at DeploymentBuilder.<anonymous> (/Users/howard.ross/Repos/philo-test-2/node_modules/@xdn/core/deploy/DeploymentBuilder.js:356:34)
at step (/Users/howard.ross/Repos/philo-test-2/node_modules/@xdn/core/deploy/DeploymentBuilder.js:34:23)
at Object.next (/Users/howard.ross/Repos/philo-test-2/node_modules/@xdn/core/deploy/DeploymentBuilder.js:15:53)
at fulfilled (/Users/howard.ross/Repos/philo-test-2/node_modules/@xdn/core/deploy/DeploymentBuilder.js:6:58)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! philo-test-2@ deploy: `xdn deploy`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the philo-test-2@ deploy script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/howard.ross/.npm/_logs/2020-09-25T14_37_40_058Z-debug.log