codatio / demo-auth-flow

An app that demonstrates the potential implementation of the Codat Link product.
https://link-demo.codat.io
4 stars 2 forks source link

API in .env not working #37

Closed mcclowes closed 2 years ago

mcclowes commented 2 years ago

Having followed the readme instructions, I get this:

[0] file:///Users/mcclowes/Development/codat/demo-auth-flow/server/clients/codat.js:8
[0]   throw new Error("You must have your Codat API key set as the environment variable CODAT_API_KEY");
[0]         ^
[0] 
[0] Error: You must have your Codat API key set as the environment variable CODAT_API_KEY
[0]     at file:///Users/mcclowes/Development/codat/demo-auth-flow/server/clients/codat.js:8:9
[0]     at ModuleJob.run (node:internal/modules/esm/module_job:197:25)
[0]     at async Promise.all (index 0)
[0]     at async ESMLoader.import (node:internal/modules/esm/loader:337:24)
[0]     at async loadESM (node:internal/process/esm_loader:88:5)
[0]     at async handleMainPromise (node:internal/modules/run_main:61:12)
[0] [nodemon] app crashed - waiting for file changes before starting...
mcclowes commented 2 years ago

Encountered this @lucy-m ? (mac)