Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not run on localhost #4

Open
equiman opened this issue Dec 29, 2021 · 2 comments
Open

Does not run on localhost #4

equiman opened this issue Dec 29, 2021 · 2 comments

Comments

@equiman
Copy link

equiman commented Dec 29, 2021

I've cloned the project and installed dependencies with this version

"node": "14.18.2",
"npm": "6.14.15"

.env file:

# Will be used as brand name across the app.
APP_NAME=Soulsearch

# Environment in which the app is running (development, production, etc)
NODE_ENV=development

# Used during development to run the server on http://{HOST}:{PORT}.
HOST=localhost
PORT=3000

# Public ports used by the nginx proxy.
# If you change these, make sure to specify the port in the API_URL_BROWSER variable below.
PROXY_HTTP_PORT=80
PROXY_HTTPS_PORT=443

# The domains and subdomains of your app (e.g. yourdomain.com,dev.yourdomain.com).
# If you're redirecting a subdomain to the top-level domain, then leave out the subdomain.
VIRTUAL_HOST=also.me.com

# Used by the letsencrypt-nginx-proxy-companion container to generate SSL certificates.
# Include all subdomains that need their traffic to be encrypted. Redirecting domains also.
# Example: yourdomain.com,www.yourdomain.com,dev.yourdomain.com
LETSENCRYPT_HOST=me.com

# Email address which should be notified by LetsEncrypt, in case of renewals, for example.
LETSENCRYPT_EMAIL=equiman@me.com

# Used for SSR requests
BASE_URL=http://localhost:3000

# Used for client side XHR requests
# In production environments this should be https://yourdomain.com/api
API_URL_BROWSER=http://localhost:3000/api

# Soulseek login credentials.
# A Soulseek user can not login simultaneously from multiple clients,
# so do not use credentials you already use in other clients.
SLSK_USER=equiman
SLSK_PASS=secretpassword

When runs with npm run start see this error on browser and console.

image

image

@riteable
Copy link
Owner

When on localhost I'd recommend using npm run dev. Just tested it and it works.

@equiman
Copy link
Author

equiman commented Dec 31, 2021

Oh yes, my mistake I ran it with start instead of dev. I've tried again but also shows some errors.

❯ npm run dev

> soulsearch@1.0.0 dev /home/juanmartinez/Applications/soulsearch
> cross-env NODE_ENV=development nodemon server/index.js --watch server

[nodemon] 1.19.4
[nodemon] to restart at any time, enter `rs`
[nodemon] watching dir(s): server/**/*
[nodemon] watching extensions: js,mjs,json
[nodemon] starting `node server/index.js`

 WARN  mode option is deprecated. You can safely remove it from nuxt.config                                                                                                             09:44:45


ℹ NuxtJS collects completely anonymous data about usage.                                                                                                                                09:44:45
  This will help us improve Nuxt developer experience over time.
  Read more on https://git.io/nuxt-telemetry

? Are you interested in participating? (Y/n) y
? Are you interested in participating? Yes

ℹ Preparing project for development                                                                                                                                                     09:44:47
ℹ Initial build may take a while                                                                                                                                                        09:44:47
✔ Builder initialized                                                                                                                                                                   09:44:47
✔ Nuxt files generated                                                                                                                                                                  09:44:47

✖ Client
  Compiled with some errors in 32.63s

✔ Server
  Compiled successfully in 33.30s


 ERROR  Failed to compile with 10 errors                                                                                                                                friendly-errors 09:45:22


 ERROR  in ./components/Logo.vue                                                                                                                                        friendly-errors 09:45:22

Module Error (from ./node_modules/eslint-loader/dist/cjs.js):                                                                                                           friendly-errors 09:45:22

/home/juanmartinez/Applications/soulsearch/components/Logo.vue
  8:12  error  clear  vue/comment-directive

✖ 1 problem (1 error, 0 warnings)

                                                                                                                                                                        friendly-errors 09:45:22
 @ ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib??vue-loader-options!./components/Navbar.vue?vue&type=script&lang=js& 23:0-37 27:10-14
 @ ./components/Navbar.vue?vue&type=script&lang=js&
 @ ./components/Navbar.vue
 @ ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib??vue-loader-options!./layouts/default.vue?vue&type=script&lang=js&
 @ ./layouts/default.vue?vue&type=script&lang=js&
 @ ./layouts/default.vue
 @ ./.nuxt/App.js
 @ ./.nuxt/index.js
 @ ./.nuxt/client.js
 @ multi ./node_modules/eventsource-polyfill/dist/browserify-eventsource.js (webpack)-hot-middleware/client.js?reload=true&timeout=30000&ansiColors=&overlayStyles=&path=%2F__webpack_hmr%2Fclient&name=client ./.nuxt/client.js
                                                                                                                                                                        friendly-errors 09:45:22

 ERROR  in ./components/Navbar.vue                                                                                                                                      friendly-errors 09:45:22

Module Error (from ./node_modules/eslint-loader/dist/cjs.js):                                                                                                           friendly-errors 09:45:22

/home/juanmartinez/Applications/soulsearch/components/Navbar.vue
  21:12  error  clear  vue/comment-directive

✖ 1 problem (1 error, 0 warnings)

                                                                                                                                                                        friendly-errors 09:45:22
 @ ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib??vue-loader-options!./layouts/default.vue?vue&type=script&lang=js& 16:0-41 21:12-18
 @ ./layouts/default.vue?vue&type=script&lang=js&
 @ ./layouts/default.vue
 @ ./.nuxt/App.js
 @ ./.nuxt/index.js
 @ ./.nuxt/client.js
 @ multi ./node_modules/eventsource-polyfill/dist/browserify-eventsource.js (webpack)-hot-middleware/client.js?reload=true&timeout=30000&ansiColors=&overlayStyles=&path=%2F__webpack_hmr%2Fclient&name=client ./.nuxt/client.js
                                                                                                                                                                        friendly-errors 09:45:22

 ERROR  in ./components/PageFooter.vue                                                                                                                                  friendly-errors 09:45:22

Module Error (from ./node_modules/eslint-loader/dist/cjs.js):                                                                                                           friendly-errors 09:45:22

/home/juanmartinez/Applications/soulsearch/components/PageFooter.vue
  14:12  error  clear  vue/comment-directive

✖ 1 problem (1 error, 0 warnings)

                                                                                                                                                                        friendly-errors 09:45:22
 @ ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib??vue-loader-options!./layouts/default.vue?vue&type=script&lang=js& 17:0-49 22:16-26
 @ ./layouts/default.vue?vue&type=script&lang=js&
 @ ./layouts/default.vue
 @ ./.nuxt/App.js
 @ ./.nuxt/index.js
 @ ./.nuxt/client.js
 @ multi ./node_modules/eventsource-polyfill/dist/browserify-eventsource.js (webpack)-hot-middleware/client.js?reload=true&timeout=30000&ansiColors=&overlayStyles=&path=%2F__webpack_hmr%2Fclient&name=client ./.nuxt/client.js
                                                                                                                                                                        friendly-errors 09:45:22

 ERROR  in ./components/Player.vue                                                                                                                                      friendly-errors 09:45:22

Module Error (from ./node_modules/eslint-loader/dist/cjs.js):                                                                                                           friendly-errors 09:45:22

/home/juanmartinez/Applications/soulsearch/components/Player.vue
  14:12  error  clear  vue/comment-directive

✖ 1 problem (1 error, 0 warnings)

                                                                                                                                                                        friendly-errors 09:45:22
 @ ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib??vue-loader-options!./layouts/default.vue?vue&type=script&lang=js& 15:0-41 20:12-18
 @ ./layouts/default.vue?vue&type=script&lang=js&
 @ ./layouts/default.vue
 @ ./.nuxt/App.js
 @ ./.nuxt/index.js
 @ ./.nuxt/client.js
 @ multi ./node_modules/eventsource-polyfill/dist/browserify-eventsource.js (webpack)-hot-middleware/client.js?reload=true&timeout=30000&ansiColors=&overlayStyles=&path=%2F__webpack_hmr%2Fclient&name=client ./.nuxt/client.js
                                                                                                                                                                        friendly-errors 09:45:22

 ERROR  in ./components/Results.vue                                                                                                                                     friendly-errors 09:45:22

Module Error (from ./node_modules/eslint-loader/dist/cjs.js):                                                                                                           friendly-errors 09:45:22

/home/juanmartinez/Applications/soulsearch/components/Results.vue
  55:12  error  clear  vue/comment-directive

✖ 1 problem (1 error, 0 warnings)

                                                                                                                                                                        friendly-errors 09:45:22
 @ ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib??vue-loader-options!./pages/index.vue?vue&type=script&lang=js& 67:0-43 73:13-20
 @ ./pages/index.vue?vue&type=script&lang=js&
 @ ./pages/index.vue
 @ ./.nuxt/router.js
 @ ./.nuxt/index.js
 @ ./.nuxt/client.js
 @ multi ./node_modules/eventsource-polyfill/dist/browserify-eventsource.js (webpack)-hot-middleware/client.js?reload=true&timeout=30000&ansiColors=&overlayStyles=&path=%2F__webpack_hmr%2Fclient&name=client ./.nuxt/client.js
                                                                                                                                                                        friendly-errors 09:45:22

 ERROR  in ./components/Search.vue                                                                                                                                      friendly-errors 09:45:22

Module Error (from ./node_modules/eslint-loader/dist/cjs.js):                                                                                                           friendly-errors 09:45:22

/home/juanmartinez/Applications/soulsearch/components/Search.vue
  14:12  error  clear  vue/comment-directive

✖ 1 problem (1 error, 0 warnings)

                                                                                                                                                                        friendly-errors 09:45:22
 @ ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib??vue-loader-options!./components/Navbar.vue?vue&type=script&lang=js& 24:0-41 28:12-18
 @ ./components/Navbar.vue?vue&type=script&lang=js&
 @ ./components/Navbar.vue
 @ ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib??vue-loader-options!./layouts/default.vue?vue&type=script&lang=js&
 @ ./layouts/default.vue?vue&type=script&lang=js&
 @ ./layouts/default.vue
 @ ./.nuxt/App.js
 @ ./.nuxt/index.js
 @ ./.nuxt/client.js
 @ multi ./node_modules/eventsource-polyfill/dist/browserify-eventsource.js (webpack)-hot-middleware/client.js?reload=true&timeout=30000&ansiColors=&overlayStyles=&path=%2F__webpack_hmr%2Fclient&name=client ./.nuxt/client.js
                                                                                                                                                                        friendly-errors 09:45:22

 ERROR  in ./components/Tips.vue                                                                                                                                        friendly-errors 09:45:22

Module Error (from ./node_modules/eslint-loader/dist/cjs.js):                                                                                                           friendly-errors 09:45:22

/home/juanmartinez/Applications/soulsearch/components/Tips.vue
  24:12  error  clear  vue/comment-directive

✖ 1 problem (1 error, 0 warnings)

                                                                                                                                                                        friendly-errors 09:45:22
 @ ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib??vue-loader-options!./pages/index.vue?vue&type=script&lang=js& 68:0-37 74:10-14
 @ ./pages/index.vue?vue&type=script&lang=js&
 @ ./pages/index.vue
 @ ./.nuxt/router.js
 @ ./.nuxt/index.js
 @ ./.nuxt/client.js
 @ multi ./node_modules/eventsource-polyfill/dist/browserify-eventsource.js (webpack)-hot-middleware/client.js?reload=true&timeout=30000&ansiColors=&overlayStyles=&path=%2F__webpack_hmr%2Fclient&name=client ./.nuxt/client.js
                                                                                                                                                                        friendly-errors 09:45:22

 ERROR  in ./layouts/default.vue                                                                                                                                        friendly-errors 09:45:22

Module Error (from ./node_modules/eslint-loader/dist/cjs.js):                                                                                                           friendly-errors 09:45:22

/home/juanmartinez/Applications/soulsearch/layouts/default.vue
  13:12  error  clear  vue/comment-directive

✖ 1 problem (1 error, 0 warnings)

                                                                                                                                                                        friendly-errors 09:45:22
 @ ./.nuxt/App.js 24:0-47 26:32-41
 @ ./.nuxt/index.js
 @ ./.nuxt/client.js
 @ multi ./node_modules/eventsource-polyfill/dist/browserify-eventsource.js (webpack)-hot-middleware/client.js?reload=true&timeout=30000&ansiColors=&overlayStyles=&path=%2F__webpack_hmr%2Fclient&name=client ./.nuxt/client.js
                                                                                                                                                                        friendly-errors 09:45:22

 ERROR  in ./layouts/error.vue                                                                                                                                          friendly-errors 09:45:22

Module Error (from ./node_modules/eslint-loader/dist/cjs.js):                                                                                                           friendly-errors 09:45:22

/home/juanmartinez/Applications/soulsearch/layouts/error.vue
  26:12  error  clear  vue/comment-directive

✖ 1 problem (1 error, 0 warnings)

                                                                                                                                                                        friendly-errors 09:45:22
 @ ./.nuxt/index.js 25:0-45 397:0-32
 @ ./.nuxt/client.js
 @ multi ./node_modules/eventsource-polyfill/dist/browserify-eventsource.js (webpack)-hot-middleware/client.js?reload=true&timeout=30000&ansiColors=&overlayStyles=&path=%2F__webpack_hmr%2Fclient&name=client ./.nuxt/client.js
                                                                                                                                                                        friendly-errors 09:45:22

 ERROR  in ./pages/index.vue                                                                                                                                            friendly-errors 09:45:22

Module Error (from ./node_modules/eslint-loader/dist/cjs.js):                                                                                                           friendly-errors 09:45:22

/home/juanmartinez/Applications/soulsearch/pages/index.vue
  48:12  error  clear  vue/comment-directive

✖ 1 problem (1 error, 0 warnings)

                                                                                                                                                                        friendly-errors 09:45:22
 @ ./.nuxt/router.js 19:24-21:3
 @ ./.nuxt/index.js
 @ ./.nuxt/client.js
 @ multi ./node_modules/eventsource-polyfill/dist/browserify-eventsource.js (webpack)-hot-middleware/client.js?reload=true&timeout=30000&ansiColors=&overlayStyles=&path=%2F__webpack_hmr%2Fclient&name=client ./.nuxt/client.js
                                                                                                                                                                        friendly-errors 09:45:22
ℹ Waiting for file changes                                                                                                                                                              09:45:22

 READY  Server listening on http://localhost:3000                                                                                                                                       09:45:22

[Vue warn]: Property or method "$icon" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.

found in

---> <Logo> at components/Logo.vue
       <NuxtLink>
         <Navbar> at components/Navbar.vue
           <Layouts/default.vue> at layouts/default.vue
             <Root>
[Vue warn]: Error in render: "TypeError: _vm.$icon is not a function"

found in

---> <Logo> at components/Logo.vue
       <NuxtLink>
         <Navbar> at components/Navbar.vue
           <Layouts/default.vue> at layouts/default.vue
             <Root>

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants