Skip to content

Error: Failed to find '../node_modules/toastify-js/src/toastify.css' 🔴 #174

@nelsonic

Description

@nelsonic

Just checked out main and ran:

mix setup

Got:

Resolving Hex dependencies...
Resolution completed in 0.177s
Unchanged:
  axon 0.6.1
  bumblebee 0.5.3
  bunt 1.0.0
  castore 1.0.11
  cc_precompiler 0.1.10
  certifi 2.12.0
  complex 0.5.0
  cowboy 2.12.0
  cowboy_telemetry 0.4.0
  cowlib 2.13.0
  credo 1.7.11
  db_connection 2.7.0
  decimal 2.3.0
  dialyxir 1.4.5
  ecto 3.12.4
  ecto_sql 3.12.1
  elixir_make 0.7.8
  erlex 0.2.7
  esbuild 0.8.2
  ex_image_info 0.2.5
  excoveralls 0.18.5
  exla 0.7.3
  file_system 1.0.1
  finch 0.19.0
  floki 0.37.0
  gen_magic 1.1.1
  hackney 1.20.1
  heroicons 0.5.6
  hnswlib 0.1.5
  hpax 1.0.0
  httpoison 2.2.1
  idna 6.1.1
  jason 1.4.4
  meck 0.9.2
  metrics 1.0.1
  mime 2.0.6
  mimerl 1.3.0
  mint 1.6.2
  mock 0.3.8
  nimble_options 1.1.1
  nimble_pool 1.1.0
  nx 0.7.3
  nx_image 0.1.2
  nx_signal 0.2.0
  parse_trans 3.4.1
  phoenix 1.7.19
  phoenix_ecto 4.6.3
  phoenix_html 4.2.0
  phoenix_live_reload 1.5.3
  phoenix_live_view 1.0.3
  phoenix_pubsub 2.1.3
  phoenix_template 1.0.4
  plug 1.16.1
  plug_cowboy 2.7.2
  plug_crypto 2.1.0
  polaris 0.1.0
  postgrex 0.19.3
  progress_bar 3.0.0
  ranch 1.8.0
  req 0.5.8
  rustler_precompiled 0.8.2
  safetensors 0.1.3
  ssl_verify_fun 1.1.7
  tailwind 0.2.4
  telemetry 1.3.0
  telemetry_metrics 1.1.0
  telemetry_poller 1.1.0
  tokenizers 0.5.1
  unicode_util_compat 0.7.0
  unpickler 0.1.0
  unzip 0.10.0
  vix 0.33.0
  websock 0.5.3
  websock_adapter 0.5.8
  xla 0.6.0
All dependencies are up to date

05:50:51.414 [debug] Downloading esbuild from https://registry.npmjs.org/@esbuild/darwin-arm64/0.18.6
Error: Failed to find '../node_modules/toastify-js/src/toastify.css'
  in [
    /image-classifier/assets/css
  ]
    at /snapshot/tailwindcss/node_modules/postcss-import/lib/resolve-id.js:35:13
    at async LazyResult.runAsync (/snapshot/tailwindcss/node_modules/postcss/lib/lazy-result.js:396:11)
    at async build (/snapshot/tailwindcss/lib/cli/build/index.js:42:9)
✘ [ERROR] Could not resolve "toastify-js"

    js/app.js:23:21:
      23 │ import Toastify from "toastify-js";
         ╵                      ~~~~~~~~~~~~~

  You can mark the path "toastify-js" as external to exclude it from the bundle, which will remove this error.

✘ [ERROR] Could not resolve "audiobuffer-to-wav"

    js/micro.js:1:18:
      1 │ import toWav from "audiobuffer-to-wav";
        ╵                   ~~~~~~~~~~~~~~~~~~~~

  You can mark the path "audiobuffer-to-wav" as external to exclude it from the bundle, which will remove this error.

2 errors
** (Mix) `mix esbuild default` exited with 1

System:

elixir -v
Erlang/OTP 27 [erts-15.2.1] [source] [64-bit] [smp:10:10] [ds:10:10:10] [async-threads:1] [jit] [dtrace]

Elixir 1.18.2 (compiled with Erlang/OTP 27)
node -v
v22.13.1
ffmpeg -version
ffmpeg version 7.1 Copyright (c) 2000-2024 the FFmpeg developers
built with Apple clang version 16.0.0 (clang-1600.0.26.4)
configuration: --prefix=/opt/homebrew/Cellar/ffmpeg/7.1_4 --enable-shared --enable-pthreads --enable-version3 --cc=clang 
--host-cflags= --host-ldflags='-Wl,-ld_classic' --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom 
--enable-libaribb24 --enable-libbluray --enable-libdav1d --enable-libharfbuzz --enable-libjxl --enable-libmp3lame 
--enable-libopus --enable-librav1e --enable-librist --enable-librubberband --enable-libsnappy --enable-libsrt -
-enable-libssh --enable-libsvtav1 --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvmaf 
--enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid 
--enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb 
--enable-libopencore-amrwb --enable-libopenjpeg --enable-libspeex --enable-libsoxr --enable-libzmq --enable-libzimg 
--disable-libjack --disable-indev=jack --enable-videotoolbox --enable-audiotoolbox --enable-neon
libavutil      59. 39.100 / 59. 39.100
libavcodec     61. 19.100 / 61. 19.100
libavformat    61.  7.100 / 61.  7.100
libavdevice    61.  3.100 / 61.  3.100
libavfilter    10.  4.100 / 10.  4.100
libswscale      8.  3.100 /  8.  3.100
libswresample   5.  3.100 /  5.  3.100
libpostproc    58.  3.100 / 58.  3.100

Going to try running the App via Docker as recommended by @ndrean in #173 (comment) 💭

Metadata

Metadata

Assignees

Labels

BLOCKED:fire: Core team's HIGHEST priority, blocking critical workchorea tedious but necessary task often paying technical debttechnicalA technical issue that requires understanding of the code, infrastructure or dependencies

Type

Projects

Status

More ToDo ThanCanEver Be Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions