Closed justinmoon closed 3 years ago
I come across the same problem
svelteApollo is not defined / when running the example I also tried to create an alias in output.globals but still the same issue.
Could you please provide us with a real; working example , and steps to run it properly ?
Kindest regards
Hi all.
The example is working.
After:
$ git clone https://github.com/timhall/svelte-apollo.git
$ cd svelte-apollo
$ npm i
do a
$ npm run build
and then a
$ npm run example
@frederikhors Thank you for sharing your experience, but I still get an error when execute npm run build
:
Error: Cannot find module './build/bindings/iltorb.node'
OS: Manjaro Linux Nodejs version: tried with v13.5.0, v12.13.0, v8.11.1 npm version: 6.13.4, 5.6.0
Your environment is the problem. Upgrade nodejs.
Hi all.
The example is working.
After:
$ git clone https://github.com/timhall/svelte-apollo.git $ cd svelte-apollo $ npm i
do a
$ npm run build
and then a
$ npm run example
I do this on two different environment and get the following : main.js:8 Uncaught ReferenceError: svelteApollo is not defined
@frederikhors I have tried nodejs v13.5.0, which is the newest version show on https://nodejs.org/en/. Could you show your environment?
@justinmoon, @jasonzhouu, still having problems?
If not please close this.