Originally created by @izyspania on GitHub (Jan 24, 2024).
Im getting the next error when building on Windows , i can start the app but i cant connect to the server , the server works because i can connect with the app from playstore.
PS C:\Users\me\Desktop\audiobookshelf-app-master> npm run dev
audiobookshelf-app@0.9.71-beta dev
nuxt --hostname 0.0.0.0 --port 1337
ℹ Using default Tailwind CSS file nuxt:tailwindcss 02:45:32
ℹ Module @nuxtjs/tailwindcss took 120.74ms to setup. 02:45:32
ℹ Tailwind Viewer: http://192.168.100.2:1337/_tailwind/ nuxt:tailwindcss 02:45:32
ℹ Preparing project for development 02:45:33
ℹ Initial build may take a while 02:45:33
ERROR Nuxt compatibility issues found: 02:45:33
[bridge] Nuxt bridge is required
[bridge] Nuxt bridge is required
at assertNuxtCompatibility (/C:/Users/me/Desktop/audiobookshelf-app-master/node_modules/@nuxt/kit/dist/index.mjs:76:11)
ℹ Waiting for file changes 02:45:41
ℹ Memory usage: 657 MB (RSS: 794 MB) 02:45:41
ℹ Listening on: http://192.168.100.2:1337/
Originally created by @izyspania on GitHub (Jan 24, 2024).
Im getting the next error when building on Windows , i can start the app but i cant connect to the server , the server works because i can connect with the app from playstore.
PS C:\Users\me\Desktop\audiobookshelf-app-master> npm run dev
> audiobookshelf-app@0.9.71-beta dev
> nuxt --hostname 0.0.0.0 --port 1337
ℹ Using default Tailwind CSS file nuxt:tailwindcss 02:45:32
ℹ Module @nuxtjs/tailwindcss took 120.74ms to setup. 02:45:32
ℹ Tailwind Viewer: http://192.168.100.2:1337/_tailwind/ nuxt:tailwindcss 02:45:32
╭───────────────────────────────────────────╮
│ │
│ Nuxt @ v2.17.3 │
│ │
│ ▸ Environment: development │
│ ▸ Rendering: client-side │
│ ▸ Target: static │
│ │
│ Listening: http://192.168.100.2:1337/ │
│ │
╰───────────────────────────────────────────╯
ℹ Preparing project for development 02:45:33
ℹ Initial build may take a while 02:45:33
ERROR Nuxt compatibility issues found: 02:45:33
- [bridge] Nuxt bridge is required
- [bridge] Nuxt bridge is required
at assertNuxtCompatibility (/C:/Users/me/Desktop/audiobookshelf-app-master/node_modules/@nuxt/kit/dist/index.mjs:76:11)
i Discovered Components: .nuxt/components/readme.md 02:45:33
✔ Builder initialized 02:45:33
✔ Nuxt files generated 02:45:33
√ Client
Compiled successfully in 6.98s
ℹ Waiting for file changes 02:45:41
ℹ Memory usage: 657 MB (RSS: 794 MB) 02:45:41
ℹ Listening on: http://192.168.100.2:1337/

adam
added the bug label 2026-04-24 23:40:25 +02:00
Are you trying to connect to a production server from the browser? If you check the console logs this is probably a cors error
@advplyr commented on GitHub (Jan 26, 2024):
Are you trying to connect to a production server from the browser? If you check the console logs this is probably a cors error
Are you trying to connect to a production server from the browser? If you check the console logs this is probably a cors error
The server is on the same computer as the app, i was trying to modify some code and i want real time updates (im used with react-native not sure how this works yet) in android studio i prob have to rebuild the app after each change.
I can connect with the app on my local server running in android studio (or from google play from my phone) but the live WEB version doesnt want to connect, i am not sure what im doing wrong.
@izyspania commented on GitHub (Jan 26, 2024):
> Are you trying to connect to a production server from the browser? If you check the console logs this is probably a cors error
The server is on the same computer as the app, i was trying to modify some code and i want real time updates (im used with react-native not sure how this works yet) in android studio i prob have to rebuild the app after each change.
I can connect with the app on my local server running in android studio (or from google play from my phone) but the live WEB version doesnt want to connect, i am not sure what im doing wrong.
Unless you are running the server in development then cors is blocked. I recommend you spin up a local development server if you want to develop in the browser.
@advplyr commented on GitHub (Jan 26, 2024):
Unless you are running the server in development then cors is blocked. I recommend you spin up a local development server if you want to develop in the browser.
https://github.com/advplyr/audiobookshelf/blob/b9ec4068ee50a3ac54f64d53f8ed0bd13bd101e9/server/Server.js#L152-L166
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @izyspania on GitHub (Jan 24, 2024).
Im getting the next error when building on Windows , i can start the app but i cant connect to the server , the server works because i can connect with the app from playstore.
PS C:\Users\me\Desktop\audiobookshelf-app-master> npm run dev
ℹ Using default Tailwind CSS file nuxt:tailwindcss 02:45:32
ℹ Module @nuxtjs/tailwindcss took 120.74ms to setup. 02:45:32
ℹ Tailwind Viewer: http://192.168.100.2:1337/_tailwind/ nuxt:tailwindcss 02:45:32
╭───────────────────────────────────────────╮
│ │
│ Nuxt @ v2.17.3 │
│ │
│ ▸ Environment: development │
│ ▸ Rendering: client-side │
│ ▸ Target: static │
│ │
│ Listening: http://192.168.100.2:1337/ │
│ │
╰───────────────────────────────────────────╯
ℹ Preparing project for development 02:45:33
ℹ Initial build may take a while 02:45:33
ERROR Nuxt compatibility issues found: 02:45:33
[bridge] Nuxt bridge is required
[bridge] Nuxt bridge is required
at assertNuxtCompatibility (/C:/Users/me/Desktop/audiobookshelf-app-master/node_modules/@nuxt/kit/dist/index.mjs:76:11)
i Discovered Components: .nuxt/components/readme.md 02:45:33
✔ Builder initialized 02:45:33
✔ Nuxt files generated 02:45:33
√ Client
Compiled successfully in 6.98s
ℹ Waiting for file changes 02:45:41
ℹ Memory usage: 657 MB (RSS: 794 MB) 02:45:41
ℹ Listening on: http://192.168.100.2:1337/
@advplyr commented on GitHub (Jan 26, 2024):
Are you trying to connect to a production server from the browser? If you check the console logs this is probably a cors error
@izyspania commented on GitHub (Jan 26, 2024):
The server is on the same computer as the app, i was trying to modify some code and i want real time updates (im used with react-native not sure how this works yet) in android studio i prob have to rebuild the app after each change.
I can connect with the app on my local server running in android studio (or from google play from my phone) but the live WEB version doesnt want to connect, i am not sure what im doing wrong.
@advplyr commented on GitHub (Jan 26, 2024):
Did you open up the browser console and confirm that you are getting a CORS error?
@advplyr commented on GitHub (Jan 26, 2024):
Unless you are running the server in development then cors is blocked. I recommend you spin up a local development server if you want to develop in the browser.
https://github.com/advplyr/audiobookshelf/blob/b9ec4068ee50a3ac54f64d53f8ed0bd13bd101e9/server/Server.js#L152-L166
@izyspania commented on GitHub (Jan 26, 2024):