You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@builder.io/sdk-vue is not properly reporting its type declarations in the output package.json. The .d.cts files exist, but they appear to not be configured in the exports object. This causes a TS7016 error as shown below:
TS7016: Could not find a declaration file for module @builder.io/sdk-vue.
.../node_modules/.pnpm/@builder.io+sdk-vue@1.0.15_vue@3.4.21/node_modules/@builder.io/sdk-vue/lib/browser/index.js
implicitly has an any type.
There are types at .../node_modules/@builder.io/sdk-vue/lib/node/index.d.cts, but this result could not be resolved when respecting package.json exports. The @builder.io/sdk-vue library may need to update its package.json or typings.
Describe the bug
@builder.io/sdk-vue
is not properly reporting its type declarations in the outputpackage.json
. The.d.cts
files exist, but they appear to not be configured in theexports
object. This causes a TS7016 error as shown below:According to:
builder/packages/sdks/output/vue/package.json
Lines 45 to 48 in 46a8ba4
It might be possible to fix this by adding a
types
key to each export referencing the.d.cts
file.To Reproduce
Steps to reproduce the behavior:
@builder.io/sdk-vue
in an environment with a type checker (such asvue-tsc
)@builder-io/sdk-vue
.Expected behavior
Type checking and TypeScript IDE features function properly.
Screenshots
The text was updated successfully, but these errors were encountered: