Whenever I try to open the visual editor, I am greeted with a Studio Preview Error:
Studio Preview Error
Please check the logs, fix any code issues, or change the project settings. When ready, hit ‘Restart’. Also, make sure your site is compatible with Netlify Create. Learn more. Site keeps crashing? Netlify Support
I have attached the logs I am able to view on the Netlify create page and it appears it stalls when it tries to start the development server:
12:47:55 PM:
12:47:55 PM: **Starting Stackbit service**
12:47:55 PM: **─────────────────────────────────**
12:47:55 PM: [info] Container v0.4.58 (common: v1.0.5, core: v3.0.5)
12:47:55 PM: [info] Stackbit service running on node v18.20.3
12:47:55 PM:
12:47:55 PM: **Cloning repository**
12:47:55 PM: **──────────────────────────**
12:47:55 PM: [info] Cloning repository from '[REPOSITORY NAME]'...
12:47:56 PM: [info] Checking out branch 'preview'...
12:47:56 PM: [info] ✅ Done
12:47:56 PM:
12:47:56 PM: **Setting up environment**
12:47:56 PM: **──────────────────────────────**
12:47:56 PM: [info] Container running from /home/appuser/app
12:47:56 PM: [info] nodeVersion in stackbit config is set to '18', switching node version...
12:47:56 PM: [info] Running command '. $NVM_DIR/nvm.sh && nvm alias default 18 && nvm use default && echo "NVM_BIN:$NVM_BIN" ' in /usr/src/app...
12:47:57 PM: [info] switched node version to v18.20.3
12:47:57 PM: [info] ✅ Done
12:47:57 PM:
12:47:57 PM: **Installing dependencies**
12:47:57 PM: **───────────────────────────────**
12:47:57 PM:
12:47:57 PM: **Running post-install command**
12:47:57 PM: **────────────────────────────────────**
12:47:57 PM: [info] Running command 'npm i --no-save @stackbit/types ' in /home/appuser/app...
12:47:57 PM: [debug] [postInstallCommand]: (node:540) Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to '0' makes TLS connections and HTTPS requests insecure by disabling certificate verification.
12:47:57 PM: [debug] [postInstallCommand]: (Use `node --trace-warnings ...` to show where the warning was created)
12:47:58 PM: [debug] [postInstallCommand]: added 1 package in 1s
12:47:58 PM: [debug] [postInstallCommand]: npm notice
12:47:58 PM: [debug] [postInstallCommand]: npm notice New minor version of npm available! 10.7.0 -> 10.8.2
12:47:58 PM: [debug] [postInstallCommand]: npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.8.2
12:47:58 PM: [debug] [postInstallCommand]: npm notice To update run: npm install -g npm@10.8.2
12:47:58 PM: [debug] [postInstallCommand]: npm notice
12:47:58 PM: [info] ✅ Done
12:47:58 PM:
12:47:58 PM: **Loading Stackbit config**
12:47:58 PM: **───────────────────────────────**
12:47:58 PM: [info] Current working directory: .
12:47:58 PM: [info] Loaded config from 'stackbit.config.ts'
12:47:58 PM: [info] ✅ Done
12:47:58 PM:
12:47:58 PM: **Loading content**
12:47:58 PM: **───────────────────────**
12:47:58 PM: [info] Using Content Source Interface
12:47:58 PM: [info] ✅ Done
12:47:58 PM:
12:47:58 PM: **Running dev server**
12:47:58 PM: **──────────────────────────**
12:47:58 PM: [info] Current working directory: .
12:47:58 PM: [info] Running dev server using: 'undefined '...
12:47:58 PM: [info] to configure a different command use `devCommand`
12:47:58 PM: [error] ❌ Service stopping
The site name is mkk.clients.nordistar.com and its files are hosted on GitHub. I have tried restarting the preview and container multiple times but to no avail. Any help would be greatly appreciated.