Skip to content

ReferenceError: __WC_CONFIG__ is not defined #290

@AriPerkkio

Description

@AriPerkkio

Describe the bug

Freshly created tutorials without any modifications are running into __WC_CONFIG__ is not defined errors. This is coming up randomly and looks like possible race condition. When page is refreshed with cache clearing the error disappears, but normal refreshes run into this error immediatelly.

This only affects dev mode.

Link to a StackBlitz project which shows the error

No response

Steps to reproduce

  1. pnpm create tutorial
  2. Start in dev mode
  3. Open page in browser
  4. Keep refreshing page and check JS console

Expected behavior

Error should not happen.

Screenshots

image

Platform

  • TutorialKit version: 0.2.0

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions