As an update for those wondering, I got it working simply using <%= process.env.GOOGLE_CLIENT_ID %>
Best posts made by yhu420
-
RE: How to get process.env.GTM in index.template.html?
Latest posts made by yhu420
-
RE: Set capacitor's default server URL?
Thank you for pointing this out. Since no solution exist yet, I’ll open a github issue about this. Thank you for your input.
-
Set capacitor's default server URL?
Here is my configuration (
hotspotdev.me
is a hosts domain aliased to 127.0.0.1), for the devServer object in myquasar.conf.js
:devServer: { https: false, port: 8080, //host: 'hotspotdev.me' }
I can access my dev server well in my local network. The capacitor app launches great, I can even edit my
assets/capacitor.config.json
to:"server": { "url": "http://hotspotdev.me:8080" // previously here: my local IP }
However, if I uncomment the
host
line, I can’t access the dev server from my local network.devServer: { https: false, port: 8080, host: 'hotspotdev.me' }
The capacitor config file is seems to use this
host
value for thecapacitor.config.json
'sserver.url
value, thus it is already set tohotspotdev.me:8080
. However, I can’t connect anymore (connection refused).Is there a way to set a default
server.url
value for Capacitor, while not having to edit the host of my dev server? Is there another way to tackle this issue? Thank you. -
RE: How to get process.env.GTM in index.template.html?
As an update for those wondering, I got it working simply using
<%= process.env.GOOGLE_CLIENT_ID %>
-
RE: "This relative module was not found" when using a Capacitor plugin
Thank you very much @metalsadman! That’s not something I could have found myself.
I’m running into ssl errors now but I’ll save that for another topic. Thanks again!
-
"This relative module was not found" when using a Capacitor plugin
I’m building a Quasar app, and would like to use the popular codetrix-studio CapacitorGoogleAuth within my app. I’ll save you a click, here is the NPMjs page. I had a great experience with this plugin in the past, but now I’m stuck with an error:
ERROR Failed to compile with 1 errors This relative module was not found: * ../../../../../capacitor.config.json in ./node_modules/@codetrix-studio/capacitor-google-auth/dist/esm/web.js
I’m running my dev server from my project root (here, the ‘client’ folder):
I found the culprit: this import causes the error:
import '@codetrix-studio/capacitor-google-auth'
The app can compile if I remove this import, but then the plugin won’t work.
I tried restarting the server, removing my node_modules, with no effect, but also deleting the
src-capacitor
folder and starting over.Nothing really works, the error is not wrong though, the file does not exist (capacitor.config.json should be in
src-capacitor
and not project root afaik).If this error is not linked to Quasar, can you tell me where I can find some help?
Thank you