Skip to content

Module level directives cause errors when bundled #5220

Closed as not planned
Closed as not planned
@vadymstebakov

Description

@vadymstebakov

Describe the bug

I got a lot of error warnings while building with React v18.2.0 + Vite v4.1.4.

Your minimal, reproducible example

Steps to reproduce

  1. npm run build;
  2. see error;

Expected behavior

I expected the build process to go without any error warnings. It has already been said in this pull request.

How often does this bug happen?

Every time

Screenshots or Videos

image

Platform

  • macOS;
  • Chrome;
  • version 111;

Tanstack Query adapter

react-query

TanStack Query version

v4.28.0

TypeScript version

v4.9.5

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions