Registry /
web-framework / rollup-plugin-use-client
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslnode 18–223 runs
build_error
glibcnode 18–223 runs
build_error
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
useClient
✓ import useClient from 'rollup-plugin-use-client'
✗ import { useClient } from 'rollup-plugin-use-client'
Default export only; named import will result in undefined.
useClient
✓ const useClient = require('rollup-plugin-use-client')
✗ const { useClient } = require('rollup-plugin-use-client')
CommonJS require returns the default export directly.
useClient
✓ import useClient from 'rollup-plugin-use-client'
✗ import * as useClient from 'rollup-plugin-use-client'
Namespace import is not the default; use default import.
Shows basic setup to add 'use client' directive in Rollup config.
// Install: npm install --save-dev rollup-plugin-use-client
import useClient from 'rollup-plugin-use-client';
export default {
input: 'src/index.js',
output: {
file: 'dist/bundle.js',
format: 'esm'
},
plugins: [
useClient()
]
};
Errors
Common errors & fixes
TypeError: useClient is not a function
Imported useClient as a named export instead of default.
fixChange to: import useClient from 'rollup-plugin-use-client'
'use client' directive not added to output
Plugin not included in Rollup plugins array or output file not covered.
fixEnsure plugin is added to plugins array: plugins: [useClient()]
Audit
Dependencies
No dependency data recorded yet.