claustres / quasar-templates Goto Github PK
View Code? Open in Web Editor NEWThis project forked from quasarframework/quasar-template-default
Quasar App Boilerplates
License: MIT License
This project forked from quasarframework/quasar-template-default
Quasar App Boilerplates
License: MIT License
Hi,
I apologise for asking here, I'm not sure where else to post a question on this.
I'm trying to use the Quasar framework with the ApolloClient (ver 2.0). I have applied the quasar-graphql
wrapper. The api is serving properly on port 3001 (confirmed with GraphiQL). The quasar client is being served on port 3002.
When my apollo client tries to post a graphql query, it is POSTing on port 3002, instead of 3001, and I can't find a way to change it, and I don't understand why this is happening
Do you have any ideas I can try?
My setup looks like this:
const client = new ApolloClient({
link: new HttpLink({ uri: 'http://localhost:3001/graphql' }),
cache: new InMemoryCache(),
connectToDevTools: true
})
I can change the port there to anything I want, but the POST always goes to 'http://locahost:3002/graphql'
and the error message I get in the console is:
Request URL:http://localhost:3002/graphql
Request Method:POST
Status Code:404 Not Found
Remote Address:[::1]:3002
Referrer Policy:no-referrer-when-downgrade
Response Headers
view parsed
HTTP/1.1 404 Not Found
X-Powered-By: Express
Content-Security-Policy: default-src 'self'
X-Content-Type-Options: nosniff
Content-Type: text/html; charset=utf-8
Content-Length: 147
Date: Mon, 13 Nov 2017 12:32:32 GMT
Connection: keep-alive
Request Headers
view source
Accept:*/*
Accept-Encoding:gzip, deflate, br
Accept-Language:en-US,en;q=0.8
Cache-Control:no-cache
Connection:keep-alive
Content-Length:93
Content-Type:application/json
DNT:1
Host:localhost:3002
Origin:http://localhost:3002
Pragma:no-cache
Referer:http://localhost:3002/
User-Agent:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36
Request Payload
view parsed
It seems to be picking up the port from quasar somewhere. Please help if you can!
Thanks
Adrian
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.