Type '{ strictRequires: string[]; }' is not assignable to type 'RollupCommonJSOptions'. Object literal may only specify known properties, and 'strictRequires' does not exist in type 'RollupCommonJSOptions'. #9475
Labels
p2-edge-case
Bug, but has workaround or limited in scope (priority)
Description
I'd like to use the new
stringRequires
feature outlined here: https://github.com/rollup/plugins/tree/master/packages/commonjs#strictrequiresI get a TypeScript warning (per the subject line). I assume that the compiled version of
@rollup/plugin-commonjs
isn't22.x
that is whenstringRequires
was added.The dev dependency is specified as
"@rollup/plugin-commonjs": "^22.0.1",
. But perhaps the build is happening on an older version?Suggested solution
I assume
vite
would just need to be built against this newer version of@rollup/plugin-commonjs
?Alternative
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: