Can't start elixir/phoenix application

I am trying to get a simple elixir application running. After some fiddling I managed to get this far:

Resolving Hex dependencies…

10:48 PM

Dependency resolution completed:

10:48 PM

Unchanged:

10:48 PM

connection 1.0.4

10:48 PM

cowboy 2.8.0

10:48 PM

cowlib 2.9.1

10:48 PM

db_connection 2.2.2

10:48 PM

decimal 1.8.1

10:48 PM

ecto 3.4.6

10:48 PM

ecto_sql 3.4.5

10:48 PM

file_system 0.2.8

10:48 PM

gettext 0.18.1

10:48 PM

jason 1.2.1

10:48 PM

mime 1.3.1

10:48 PM

phoenix 1.5.4

10:48 PM

phoenix_ecto 4.1.0

10:48 PM

phoenix_html 2.14.2

10:48 PM

phoenix_live_dashboard 0.2.7

10:48 PM

phoenix_live_reload 1.2.4

10:48 PM

phoenix_live_view 0.14.4

10:48 PM

phoenix_pubsub 2.0.0

10:48 PM

plug 1.10.4

10:48 PM

plug_cowboy 2.3.0

10:48 PM

plug_crypto 1.1.2

10:48 PM

postgrex 0.15.5

10:48 PM

ranch 1.7.1

10:48 PM

telemetry 0.4.2

10:48 PM

telemetry_metrics 0.5.0

10:48 PM

telemetry_poller 0.5.1

10:48 PM

All dependencies are up to date

10:48 PM

===> Compiling ranch

10:48 PM

===> Compiling telemetry

10:48 PM

===> Compiling telemetry_poller

10:48 PM

===> Compiling cowlib

10:48 PM

===> Compiling cowboy

10:48 PM

Compiling 14 files (.ex)

10:49 PM

Generated mealspos app

10:49 PM

4 minutes ago

[error] inotify-tools is needed to run file_system for your system, check Home · inotify-tools/inotify-tools Wiki · GitHub for more information about how to install it. If it’s already installed but not be found, appoint executable file with config.exs or FILESYSTEM_FSINOTIFY_EXECUTABLE_FILE env.

10:49 PM

[warn] Could not start Phoenix live-reload because we cannot listen to the file system.

10:49 PM

You don’t need to worry! This is an optional feature used during development to

10:49 PM

refresh your browser when you save files and it does not affect production.

However attempting to access the app page it get’s stuck at
Starting app...
To keep Glitch fast for everyone, inactive projects go to sleep and wake up on request.

Could someone please look into this?

hi, have you set a start script in your package.json?

https://glitch.happyfox.com/kb/article/31-i-m-getting-the-error-check-app-package-json-command-not-found-is-a-start-script-missing-what-s-up-with-that/

1 Like

It looks like a package error. I would look into that. I don’t know the package, but I would look for an issue with that problem on the package’s repository.

Nope, but when I did the issue persists.

{
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1",
    "start": "cd mealspos && mix phx.server"
  },
  "engines": {
    "node": "12.x"
  }
}

Everything seems fine on that end.
$ node node_modules/webpack/bin/webpack.js --mode development
[hardsource:58aabe89] Writing new cache 58aabe89…
[hardsource:58aabe89] Tracking node dependencies with: package-lock.json.
Hash: 3c59b941f06bbd62dddc
Version: webpack 4.41.5
Time: 11902ms
Built at: 08/10/2020 6:58:17 PM
Asset Size Chunks Chunk Names
…/css/app.css 10.7 KiB app [emitted] app
…/favicon.ico 1.23 KiB [emitted]
…/images/phoenix.png 13.6 KiB [emitted]
…/robots.txt 202 bytes [emitted]
app.js 6.64 KiB app [emitted] app
Entrypoint app = …/css/app.css app.js
[0] multi ./js/app.js 28 bytes {app} [built]
[./css/app.scss] 39 bytes {app} [built]
[./js/app.js] 490 bytes {app} [built]
+ 2 hidden modules

ERROR in ./js/app.js
Module not found: Error: Can’t resolve ‘phoenix_html’ in ‘/app/mealspos/assets/js’
@ ./js/app.js 14:0-22
@ multi ./js/app.js
Child mini-css-extract-plugin …/…/…/rbd/pnpm-volume/159eb5d9-cf1a-4694-ad81-49cc71db45e4/mealspos/assets/node_modules/css-loader/dist/cjs.js!../…/…/rbd/pnpm-volume/159eb5d9-cf1a-4694-ad81-49cc71db45e4/mealspos/assets/node_modules/sass-loader/dist/cjs.js!css/app.scss:
Entrypoint mini-css-extract-plugin = *
[…/…/…/rbd/pnpm-volume/159eb5d9-cf1a-4694-ad81-49cc71db45e4/mealspos/assets/node_modules/css-loader/dist/cjs.js!../…/…/rbd/pnpm-volume/159eb5d9-cf1a-4694-ad81-49cc71db45e4/mealspos/assets/node_modules/sass-loader/dist/cjs.js!./css/app.scss] /rbd/pnpm-volume/159eb5d9-cf1a-4694-ad81-49cc71db45e4/mealspos/assets/node_modules/css-loader/dist/cjs.js!/rbd/pnpm-volume/159eb5d9-cf1a-4694-ad81-49cc71db45e4/mealspos/assets/node_modules/sass-loader/dist/cjs.js!./css/app.scss 1.16 KiB {mini-css-extract-plugin} [built]
[…/…/…/rbd/pnpm-volume/159eb5d9-cf1a-4694-ad81-49cc71db45e4/mealspos/assets/node_modules/css-loader/dist/cjs.js!./css/phoenix.css] /rbd/pnpm-volume/159eb5d9-cf1a-4694-ad81-49cc71db45e4/mealspos/assets/node_modules/css-loader/dist/cjs.js!./css/phoenix.css 10.5 KiB {mini-css-extract-plugin} [built]
+ 1 hidden module

Still no errors in the console