-
-
Notifications
You must be signed in to change notification settings - Fork 8
Closed
Labels
bugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Description
When we build library using unbuild, we faced an error like this
[11:12:24 PM] ERROR Error building /Users/ryoppippi/ghq/github.com/wrtnlabs/agentica/packages/pg-vector-selector: Error: namespace child (hoisting) not s
upported yet
66 | reference: boolean;
67 | }
> 68 | export import IParameters = ILlmSchemaV3_1.IParameters;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
69 | export import IConstant = ILlmSchemaV3_1.IConstant;
70 | export import IBoolean = ILlmSchemaV3_1.IBoolean;
71 | export import IInteger = ILlmSchemaV3_1.IInteger;
ERROR namespace child (hoisting) not supported yet 11:12:24 PM
66 | reference: boolean;
67 | }
> 68 | export import IParameters = ILlmSchemaV3_1.IParameters;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
69 | export import IConstant = ILlmSchemaV3_1.IConstant;
70 | export import IBoolean = ILlmSchemaV3_1.IBoolean;
71 | export import IInteger = ILlmSchemaV3_1.IInteger;
at DeclarationScope.convertNamespace (/Users/ryoppippi/ghq/github.com/wrtnlabs/agentica/node_modules/.pnpm/rollup-plugin-dts@6.2.1_rollup@4.36.0_typesc
ript@5.7.3/node_modules/rollup-plugin-dts/dist/rollup-plugin-dts.mjs:1532:23)
at Transformer.convertNamespaceDeclaration (/Users/ryoppippi/ghq/github.com/wrtnlabs/agentica/node_modules/.pnpm/rollup-plugin-dts@6.2.1_rollup@4.36.0_
typescript@5.7.3/node_modules/rollup-plugin-dts/dist/rollup-plugin-dts.mjs:1692:15)
at Transformer.convertStatement (/Users/ryoppippi/ghq/github.com/wrtnlabs/agentica/node_modules/.pnpm/rollup-plugin-dts@6.2.1_rollup@4.36.0_typescript@
5.7.3/node_modules/rollup-plugin-dts/dist/rollup-plugin-dts.mjs:1660:25)
at new Transformer (/Users/ryoppippi/ghq/github.com/wrtnlabs/agentica/node_modules/.pnpm/rollup-plugin-dts@6.2.1_rollup@4.36.0_typescript@5.7.3/node_mo
dules/rollup-plugin-dts/dist/rollup-plugin-dts.mjs:1599:18)
at convert (/Users/ryoppippi/ghq/github.com/wrtnlabs/agentica/node_modules/.pnpm/rollup-plugin-dts@6.2.1_rollup@4.36.0_typescript@5.7.3/node_modules/ro
llup-plugin-dts/dist/rollup-plugin-dts.mjs:1590:25)
at Object.transform (/Users/ryoppippi/ghq/github.com/wrtnlabs/agentica/node_modules/.pnpm/rollup-plugin-dts@6.2.1_rollup@4.36.0_typescript@5.7.3/node_m
odules/rollup-plugin-dts/dist/rollup-plugin-dts.mjs:1927:31)
at handleDtsFile (/Users/ryoppippi/ghq/github.com/wrtnlabs/agentica/node_modules/.pnpm/rollup-plugin-dts@6.2.1_rollup@4.36.0_typescript@5.7.3/node_modu
les/rollup-plugin-dts/dist/rollup-plugin-dts.mjs:2078:54)
at Object.transform (/Users/ryoppippi/ghq/github.com/wrtnlabs/agentica/node_modules/.pnpm/rollup-plugin-dts@6.2.1_rollup@4.36.0_typescript@5.7.3/node_m
odules/rollup-plugin-dts/dist/rollup-plugin-dts.mjs:2116:24)
at /Users/ryoppippi/ghq/github.com/wrtnlabs/agentica/node_modules/.pnpm/rollup@4.36.0/node_modules/rollup/dist/es/shared/node-entry.js:21967:40
ERROR namespace child (hoisting) not supported yet 11:12:24 PM
66 | reference: boolean;
67 | }
> 68 | export import IParameters = ILlmSchemaV3_1.IParameters;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
69 | export import IConstant = ILlmSchemaV3_1.IConstant;
70 | export import IBoolean = ILlmSchemaV3_1.IBoolean;
71 | export import IInteger = ILlmSchemaV3_1.IInteger;
The reason is that rollup-plugin-dts
cannot deal with export import
syntax.
Swatinem/rollup-plugin-dts#162
unbuild
is widely used right now, however we cannot emit dts files becaues of this syntax.
I gonna create reproduction repository, so this issue is kind of draft!
but it happens when we try to build @wrtnlabs/agentica/packages/pg-vector-selector
with unbuild
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers