We've moved discussions to Discord

Just downloaded and configure the app and failed

Borja Robles Gomez
I just downloaded the source code and used the instructions and got this issue

 [ERROR] Could not resolve "@rails/ujs"

    application.js:4:18:
      4 │ import Rails from "@rails/ujs"
        ╵                   ~~~~~~~~~~~~

  You can mark the path "@rails/ujs" as external to exclude it from the bundle, which will remove
  this error.

✘ [ERROR] Could not resolve "@hotwired/turbo-rails"

    application.js:5:22:
      5 │ import { Turbo } from "@hotwired/turbo-rails"
        ╵                       ~~~~~~~~~~~~~~~~~~~~~~~

  You can mark the path "@hotwired/turbo-rails" as external to exclude it from the bundle, which
  will remove this error.

✘ [ERROR] Could not resolve "@rails/actiontext"

    application.js:12:7:
      12 │ import "@rails/actiontext"
         ╵        ~~~~~~~~~~~~~~~~~~~

  You can mark the path "@rails/actiontext" as external to exclude it from the bundle, which will
  remove this error.

✘ [ERROR] Could not resolve "@rails/activestorage"

    application.js:11:8:
      11 │ require("@rails/activestorage").start()
         ╵         ~~~~~~~~~~~~~~~~~~~~~~

  You can mark the path "@rails/activestorage" as external to exclude it from the bundle, which will
  remove this error. You can also surround this "require" call with a try/catch block to handle this
  failure at run-time instead of bundle-time.

✘ [ERROR] Could not resolve "local-time"

    application.js:22:8:
      22 │ require("local-time").start()
         ╵         ~~~~~~~~~~~~

  You can mark the path "local-time" as external to exclude it from the bundle, which will remove
  this error. You can also surround this "require" call with a try/catch block to handle this
  failure at run-time instead of bundle-time.

✘ [ERROR] Could not resolve "@rails/ujs"

    src/confirm.js:3:22:
      3 │ const Rails = require("@rails/ujs")
        ╵                       ~~~~~~~~~~~~

  You can mark the path "@rails/ujs" as external to exclude it from the bundle, which will remove
  this error. You can also surround this "require" call with a try/catch block to handle this
  failure at run-time instead of bundle-time.

✘ [ERROR] Could not resolve "js-cookie"

    src/timezone.js:1:20:
      1 │ import Cookies from 'js-cookie'
        ╵                     ~~~~~~~~~~~

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

✘ [ERROR] Could not resolve "jstz"

    src/timezone.js:2:17:
      2 │ import jstz from 'jstz'
        ╵                  ~~~~~~

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

✘ [ERROR] Could not resolve "tailwindcss-stimulus-components"

    controllers/index.js:12:66:
      12 │ import { Dropdown, Modal, Tabs, Popover, Toggle, Slideover } from "tailwindcss-stimulus-components"
         ╵                                                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

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

✘ [ERROR] Could not resolve "stimulus-flatpickr"

    controllers/index.js:20:22:
      20 │ import Flatpickr from 'stimulus-flatpickr'
         ╵                       ~~~~~~~~~~~~~~~~~~~~

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

✘ [ERROR] Could not resolve "@hotwired/stimulus"

    controllers/application.js:1:28:
      1 │ import { Application } from "@hotwired/stimulus"
        ╵                             ~~~~~~~~~~~~~~~~~~~~

  You can mark the path "@hotwired/stimulus" as external to exclude it from the bundle, which will
  remove this error.

✘ [ERROR] Could not resolve "trix"

    src/actiontext.js:1:17:
      1 │ import Trix from "trix"
        ╵                  ~~~~~~

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

✘ [ERROR] Could not resolve "@rails/actiontext"

    src/actiontext.js:2:7:
      2 │ import "@rails/actiontext"
        ╵        ~~~~~~~~~~~~~~~~~~~

  You can mark the path "@rails/actiontext" as external to exclude it from the bundle, which will
  remove this error.

✘ [ERROR] Could not resolve "@rails/request.js"

    src/actiontext.js:3:20:
      3 │ import { get } from "@rails/request.js"
        ╵                     ~~~~~~~~~~~~~~~~~~~

  You can mark the path "@rails/request.js" as external to exclude it from the bundle, which will
  remove this error.

✘ [ERROR] Could not resolve "@hotwired/stimulus"

    controllers/accounts_controller.js:3:27:
      3 │ import { Controller } from "@hotwired/stimulus"
        ╵                            ~~~~~~~~~~~~~~~~~~~~

  You can mark the path "@hotwired/stimulus" as external to exclude it from the bundle, which will
  remove this error.

✘ [ERROR] Could not resolve "@rails/actioncable"

    channels/consumer.js:4:31:
      4 │ import { createConsumer } from "@rails/actioncable"
        ╵                                ~~~~~~~~~~~~~~~~~~~~

  You can mark the path "@rails/actioncable" as external to exclude it from the bundle, which will
  remove this error.

✘ [ERROR] Could not resolve "@hotwired/stimulus"

    controllers/select_controller.js:1:27:
      1 │ import { Controller } from "@hotwired/stimulus"
        ╵                            ~~~~~~~~~~~~~~~~~~~~

  You can mark the path "@hotwired/stimulus" as external to exclude it from the bundle, which will
  remove this error.

✘ [ERROR] Could not resolve "slim-select"

    controllers/select_controller.js:2:23:
      2 │ import SlimSelect from 'slim-select'
        ╵                        ~~~~~~~~~~~~~

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

✘ [ERROR] Could not resolve "@hotwired/stimulus"

    controllers/turbo_native/sign_out_controller.js:1:27:
      1 │ import { Controller } from "@hotwired/stimulus"
        ╵                            ~~~~~~~~~~~~~~~~~~~~

  You can mark the path "@hotwired/stimulus" as external to exclude it from the bundle, which will
  remove this error.

✘ [ERROR] Could not resolve "@hotwired/stimulus"

    controllers/bulk_controller.js:12:27:
      12 │ import { Controller } from "@hotwired/stimulus"
         ╵                            ~~~~~~~~~~~~~~~~~~~~

  You can mark the path "@hotwired/stimulus" as external to exclude it from the bundle, which will
  remove this error.

✘ [ERROR] Could not resolve "@hotwired/stimulus"

    controllers/pricing_controller.js:5:27:
      5 │ import { Controller } from "@hotwired/stimulus"
        ╵                            ~~~~~~~~~~~~~~~~~~~~

  You can mark the path "@hotwired/stimulus" as external to exclude it from the bundle, which will
  remove this error.

✘ [ERROR] Could not resolve "@hotwired/stimulus"

    controllers/notifications_controller.js:1:27:
      1 │ import { Controller } from "@hotwired/stimulus"
        ╵                            ~~~~~~~~~~~~~~~~~~~~

  You can mark the path "@hotwired/stimulus" as external to exclude it from the bundle, which will
  remove this error.

✘ [ERROR] Could not resolve "@hotwired/stimulus"

    controllers/turbo_native/push_notifications_controller.js:1:27:
      1 │ import { Controller } from "@hotwired/stimulus"
        ╵                            ~~~~~~~~~~~~~~~~~~~~

  You can mark the path "@hotwired/stimulus" as external to exclude it from the bundle, which will
  remove this error.

✘ [ERROR] Could not resolve "@hotwired/stimulus"

    controllers/paddle_controller.js:1:27:
      1 │ import { Controller } from "@hotwired/stimulus"
        ╵                            ~~~~~~~~~~~~~~~~~~~~

  You can mark the path "@hotwired/stimulus" as external to exclude it from the bundle, which will
  remove this error.

✘ [ERROR] Could not resolve "@hotwired/stimulus"

    controllers/braintree_controller.js:1:27:
      1 │ import { Controller } from "@hotwired/stimulus"
        ╵                            ~~~~~~~~~~~~~~~~~~~~

  You can mark the path "@hotwired/stimulus" as external to exclude it from the bundle, which will
  remove this error.

✘ [ERROR] Could not resolve "@hotwired/stimulus"

    controllers/paypal_controller.js:1:27:
      1 │ import { Controller } from "@hotwired/stimulus"
        ╵                            ~~~~~~~~~~~~~~~~~~~~

  You can mark the path "@hotwired/stimulus" as external to exclude it from the bundle, which will
  remove this error.

✘ [ERROR] Could not resolve "@hotwired/stimulus"

    controllers/tooltip_controller.js:4:27:
      4 │ import { Controller } from "@hotwired/stimulus"
        ╵                            ~~~~~~~~~~~~~~~~~~~~

  You can mark the path "@hotwired/stimulus" as external to exclude it from the bundle, which will
  remove this error.

✘ [ERROR] Could not resolve "@hotwired/stimulus"

    controllers/stripe_controller.js:1:27:
      1 │ import { Controller } from "@hotwired/stimulus"
        ╵                            ~~~~~~~~~~~~~~~~~~~~

  You can mark the path "@hotwired/stimulus" as external to exclude it from the bundle, which will
  remove this error.

✘ [ERROR] Could not resolve "@hotwired/turbo-rails"

    controllers/stripe_controller.js:2:22:
      2 │ import { Turbo } from "@hotwired/turbo-rails"
        ╵                       ~~~~~~~~~~~~~~~~~~~~~~~

  You can mark the path "@hotwired/turbo-rails" as external to exclude it from the bundle, which
  will remove this error.

✘ [ERROR] Could not resolve "tippy.js"

    controllers/tooltip_controller.js:5:18:
      5 │ import tippy from "tippy.js";
        ╵                   ~~~~~~~~~~

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

✘ [ERROR] Could not resolve "@hotwired/stimulus"

    controllers/mentions_controller.js:1:27:
      1 │ import { Controller } from "@hotwired/stimulus"
        ╵                            ~~~~~~~~~~~~~~~~~~~~

  You can mark the path "@hotwired/stimulus" as external to exclude it from the bundle, which will
  remove this error.

✘ [ERROR] Could not resolve "tributejs"

    controllers/mentions_controller.js:2:20:
      2 │ import Tribute from "tributejs"
        ╵                     ~~~~~~~~~~~

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

✘ [ERROR] Could not resolve "trix"

    controllers/mentions_controller.js:3:17:
      3 │ import Trix from "trix"
        ╵                  ~~~~~~

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

✘ [ERROR] Could not resolve "@hotwired/stimulus"

    controllers/clipboard_controller.js:1:27:
      1 │ import { Controller } from "@hotwired/stimulus"
        ╵                            ~~~~~~~~~~~~~~~~~~~~

  You can mark the path "@hotwired/stimulus" as external to exclude it from the bundle, which will
  remove this error.

✘ [ERROR] Could not resolve "clipboard"

    controllers/clipboard_controller.js:2:24:
      2 │ import ClipboardJS from "clipboard"
        ╵                         ~~~~~~~~~~~

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

✘ [ERROR] Could not resolve "tippy.js"

    controllers/clipboard_controller.js:3:18:
      3 │ import tippy from "tippy.js";
        ╵                   ~~~~~~~~~~

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

Matthias Orgler
Did you run "bin/setup"? This should set up all dependencies and the environment. At least it worked flawlessly for me.
Matt Bjornson
Make sure you have `@rails/ujs` installed via `yarn add @rails/ujs` and I believe that error will go away...
Notifications
You’re not receiving notifications from this thread.