(node:37087) ExperimentalWarning: The Node.js specifier resolution flag is experimental. It could change or be removed at any time.
(Use `node --trace-warnings ...` to show where the warning was created)
(node:37087) ExperimentalWarning: Importing JSON modules is an experimental feature. This feature could change at any time
/client/node_modules/@dfinity/agent/lib/cjs/agent/http/index.js:141
throw new Error('Must specify a host to connect to.');
^
Error: Must specify a host to connect to.
at new HttpAgent (/client/node_modules/@dfinity/agent/lib/cjs/agent/http/index.js:141:23)
at createActor (file:///client/declarations/user_index/index.js:11:33)
at file:///client/declarations/user_index/index.js:36:27
at ModuleJob.run (node:internal/modules/esm/module_job:193:25)
at async Promise.all (index 0)
at async ESMLoader.import (node:internal/modules/esm/loader:530:24)
at async loadESM (node:internal/process/esm_loader:91:5)
at async handleMainPromise (node:internal/modules/run_main:65:12)
Node.js v18.12.1
This error could be an agent instance somewhere that’s trying to load before you pass it the host, you can check the imports where you have agents and try to debug it there.