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
transformPaths(service.getProgram()) is returning this error.
Type '{ before(transformationContext: TransformationContext): Transformer<SourceFile>; afterDeclarations(transformationContext: TransformationContext): CustomTransformers | Transformer<...>; }' is not assignable to type 'CustomTransformers | ICustomTransformer'.
Type '{ before(transformationContext: TransformationContext): Transformer<SourceFile>; afterDeclarations(transformationContext: TransformationContext): CustomTransformers | Transformer<...>; }' is not assignable to type 'ICustomTransformer'.
The types returned by 'afterDeclarations(...)' are incompatible between these types.
Type 'CustomTransformers | Transformer<SourceFile>' is not assignable to type 'Transformer<SourceFile | Bundle>'.
Type 'CustomTransformers' is not assignable to type 'Transformer<SourceFile | Bundle>'.
Type 'CustomTransformers' provides no match for the signature '(node: SourceFile | Bundle): SourceFile | Bundle'.ts(2322)
ioptions.d.ts(8, 49): The expected type comes from the return type of this signature.
Is there anyway to deal with this or is a fix needed?
The text was updated successfully, but these errors were encountered:
Tried what was in the readme with ttypescript and it did not work.
(rpt2 plugin) TypeError: this.emitFile is not a function
TypeError: this.emitFile is not a function
at emitDeclaration (/Users/justinnguyen/Projects/ui-design-components/node_modules/rollup-plugin-typescript2/src/index.ts:366:11)
at /Users/justinnguyen/Projects/ui-design-components/node_modules/rollup-plugin-typescript2/src/index.ts:376:5
at /Users/justinnguyen/Projects/ui-design-components/node_modules/rollup-plugin-typescript2/node_modules/lodash/lodash.js:4905:15
at baseForOwn (/Users/justinnguyen/Projects/ui-design-components/node_modules/rollup-plugin-typescript2/node_modules/lodash/lodash.js:2990:24)
at /Users/justinnguyen/Projects/ui-design-components/node_modules/rollup-plugin-typescript2/node_modules/lodash/lodash.js:4874:18
at _.each (/Users/justinnguyen/Projects/ui-design-components/node_modules/rollup-plugin-typescript2/node_modules/lodash/lodash.js:9342:14)
at Object._onwrite (/Users/justinnguyen/Projects/ui-design-components/node_modules/rollup-plugin-typescript2/src/index.ts:374:4)
at Object.generateBundle (/Users/justinnguyen/Projects/ui-design-components/node_modules/rollup-plugin-typescript2/src/index.ts:279:18)
at /Users/justinnguyen/Projects/ui-design-components/node_modules/rollup/dist/rollup.js:20962:25
With what is in my previous post, that setup does work, but it is just that type issue.
Followed all the instructions for tsconfig.ts and for rollup.config.ts for rollup-plugin-typescript.
tsconfig.json
rollup.config.ts
transformPaths(service.getProgram()) is returning this error.
Is there anyway to deal with this or is a fix needed?
The text was updated successfully, but these errors were encountered: