Abort [Error]: The CLIKitStore instance hasn't been initialized & AppBridgeError: APP::ERROR::INVALID_CONFIG: host must be provided
See original GitHub issueHey guys. Unfortunately, it is not possible to set up the project due to two errors. Been trying to get the project to run for hours.
Error 1: Abort [Error]: The CLIKitStore instance hasn’t been initialized - The CLIKitStore instance hasn’t been initialized in line 35 @ next.config.mjs before session.ensureAuthenticatedPartners();
is called. I couldn’t find any documentation on @shopify/cli-kit and trying await store.initializeCliKitStore();
in line 34 doesn’t seem to work either. How do I initialize the store before the session is authenticated?
Error 2: AppBridgeError: APP::ERROR::INVALID_CONFIG: host must be provided - Whether I comment out the host in line 62 @ next.config.mjs or not, the host seems to be non-resolvable. Do I need to define an additional host in the dotenv? HOST=https://localhost
does not seem to work for me, even tho I set it as URL in the Shopify Plugin. Is there a solution for this?
I would be very grateful for any solutions and advice and thank you in advance.
Have a nice evening everyone 😃
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:6 (2 by maintainers)
Top GitHub Comments
Yup, that fixed the issue!
There were some issues in the middleware and auth api routes. I’ve changed a few things and tested it, all should be working as expected now. You can see the changes in the lates commit.
Please let me know, If there are more issues!