这是indexloc提供的服务,不要输入任何密码
Skip to content

Solved! vite proxy & connection errors, TypeError: scopesArray.map #148

@AbsentLung

Description

@AbsentLung

I was receiving various vite proxy & connection-related errors e.g.
│ frontend │ 9:10:42 PM [vite] http proxy error: │ frontend │ Error: socket hang up │ frontend │ at connResetException (node:internal/errors:717:14) │ frontend │ at Socket.socketOnEnd (node:_http_client:519:23) │ frontend │ at Socket.emit (node:events:523:35) │ frontend │ at endReadableNT (node:internal/streams/readable:1367:12) │ frontend │ at process.processTicksAndRejections (node:internal/process/task_queues:82:21)

but the initial error was:
│ backend │ [shopify-app/ERROR] Could not check if session was valid: TypeError: scopesArray.map is not a function | {shop: textline-integration-test-store.myshopify.com}

& I finally just solved it. I just needed to upgrade my version of shopify-app-express in web/package.json to 2.0.0. I’ll try to let the github community know about it. Credit Shopify/shopify-app-template-node#1208 (comment)

It took me a while to find this answer, so I just figured that I'd post this under "issues".

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