Skip to content

Module '"next-shopify"' has no exported member 'handleShopifyStorefront'.ts #15

@outdatedx

Description

@outdatedx

While building a template file for my future projects I found this error

// next-shopify-template\src\pages\api\shopify\[...storefront].ts

import { handleShopifyStorefront } from "next-shopify";

// be sure to add the correct env variables.

export default handleShopifyStorefront({
  domain: process.env.NEXT_PUBLIC_SHOPIFY_DOMAIN as string,
  storefrontAccessToken: process.env.SHOPIFY_STOREFRONT_ACCESS_TOKEN as string,
});

like in the docs giving I created a API endpoint for shopify store front it says that handelShopifyStorefront is not an exported module which is true after I looked through the source files is there a work around to this or a fix?

thanks I'm kinda of a newbie to React and Next and the frameworks in general so please dont mind me ty!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions