Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove extra 'use client' directive #261

Merged
merged 1 commit into from
Feb 9, 2024

Commits on Feb 6, 2024

  1. fix: remove extra 'use client' directive

    When using Next.js and SWC plugin coverage instrumentation, you will get this error due to the duplication of the use client directive:
    
    ```
    Error: 
      × The "use client" directive must be placed before other expressions. Move it to the top of the file to resolve this issue.
       ╭─[/node_modules/.pnpm/vaul@0.9.0_@types+react-dom@18.2.17_@types+react@18.2.43_react-dom@18.2.0_react@18.2.0/node_modules/vaul/dist/index.mjs:1:1]
     1 │ "use client"
     2 │ "use client";import * as L from "@radix-ui/react-dialog";
    ```
    Kinbaum authored Feb 6, 2024
    Configuration menu
    Copy the full SHA
    01d398d View commit details
    Browse the repository at this point in the history