question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Abort [Error]: The CLIKitStore instance hasn't been initialized & AppBridgeError: APP::ERROR::INVALID_CONFIG: host must be provided

See original GitHub issue

Hey 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:closed
  • Created a year ago
  • Reactions:1
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
aimproxycommented, Jul 13, 2022

Yup, that fixed the issue!

0reactions
carstenlebekcommented, Jul 13, 2022

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!

Read more comments on GitHub >

github_iconTop Results From Across the Web

APP::ERROR::INVALID_CONFIG: host must be provided
The error described as "AppBridgeError" occurs when I uninstall the app from the store and try to reuse the same URL generated by...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found