Skip to content

[Bug]: Error: This must be called within a setup function #6799

Open
@end0cr1ne

Description

@end0cr1ne

Describe the Bug

I get the error: Error: This must be called within a setup function
While following the install instructions as per the document: npx @vue-storefront/cli generate store

Please help, I'm not sure what the cause is.

Current behavior

In visiting localhost:3001 Error: This must be called within a setup function

Expected behavior

The page renders

Steps to reproduce

bootstrap a new project using the cli then run npm un dev and visit the homepage

What version of Vue Storefront are you using?

2.5.6

What version of Node.js are you using?

16.16.0

What browser (and version) are you using?

Chrome

What operating system (and version) are you using?

macOS@latest

Relevant log output

ERROR  [Vue warn]: Error in setup: "Error: This must be called within a setup function."                                                                          00:06:15

found in

---> <DefaultLayout> at layouts/default.vue
       <Root>

Able to fix / change the documentation?

  • Yes
  • No

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBug reports

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions