Files
DocsGPT/extensions/react-widget/src
Alex 74b4ae30f9 fix(react-widget): drop the stranded 'use client' directive
Parcel's library build concatenates modules, so the directive at the top
of DocsGPTWidget.tsx landed a thousand lines into dist/module.js and
dist/main.js. webpack rejects a 'use client' that is not the first
expression in the file, which broke every Next.js consumer of
docsgpt-react:

  x The "use client" directive must be placed before other expressions.
    1168 | 'use client';

The directive could not do its job from inside a bundle anyway. A React
Server Components boundary has to be declared by the importing module,
so consumers wrap the widget in their own client component instead.
2026-09-12 12:15:08 +01:00
..
2026-03-26 02:06:49 +05:30
2026-03-26 02:06:49 +05:30
2026-03-26 02:06:49 +05:30