feathersjs / feathers

The API and real-time application framework
https://feathersjs.com
MIT License
15.08k stars 752 forks source link

Uncaught (in promise) SyntaxError: when trying quasar framework to develop capacitor mobile app #3327

Closed haniyasin closed 1 month ago

haniyasin commented 1 year ago

Steps to reproduce

PS: Quasar dev (i.e for web no issues) create a quasar project , to connect to a feathers service using quasar mode add capacitor quasar dev -m capacitor -T android

(First please check that this issue is not already solved as described here - if it is a general question or suggestion please start a Discussion)

Actual behavior

Tell us what happens instead

System configuration

Tell us about the applicable parts of your setup.

Module versions (especially the part that's not working):

NodeJS version:v18.12.1

Operating System: windows 11

Browser Version: chrome latest, capacitor 5

React Native Version:NA

Module Loader: webpack i am using npm workspaces "dependencies": { "@feathersjs/authentication-client": "^5.0.8", "@feathersjs/feathers": "^5.0.8", "@feathersjs/socketio-client": "^5.0.8", "@quasar/cli": "^2.3.0", "@quasar/extras": "^1.16.4", "@tanstack/vue-query": "^4.35.3", "@vueuse/rxjs": "^10.5.0", "core-js": "^3.6.5", "devextreme": "23.1", "devextreme-vue": "23.1", "dexie": "^3.2.4", "json-logic-js": "^2.0.2", "papaparse": "^5.4.1", "pinia": "^2.0.11", "quasar": "^2.6.0", "rxjs": "^7.8.1", "socket.io-client": "^4.7.2", "vue": "^3.3.7", "vue-i18n": "^9.0.0", "vue-router": "^4.2.5" }, "devDependencies": { "@quasar/app-webpack": "^3.0.0" },

daffl commented 11 months ago

While this is the default in newer versions of Webpack you may have to include the Feathers modules to be transpiled.

{
  test: /\.jsx?$/,
  exclude: /node_modules(\/|\\)(?!(@feathersjs|debug))/,
  loader: 'babel-loader'
}