Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conflicting exports in plugin.d.ts causing TypeScript errors: #116

Open
wleslie opened this issue Sep 11, 2021 · 0 comments
Open

Conflicting exports in plugin.d.ts causing TypeScript errors: #116

wleslie opened this issue Sep 11, 2021 · 0 comments

Comments

@wleslie
Copy link
Contributor

wleslie commented Sep 11, 2021

plugin.d.ts seems to have conflicting exports that cause TypeScript errors.

The errors:

node_modules/@wasm-tool/wasm-pack-plugin/plugin.d.ts:23:1 - error TS2309: An export assignment cannot be used in a module with other exported elements.

23 export = WasmPackPlugin
   ~~~~~~~~~~~~~~~~~~~~~~~

node_modules/@wasm-tool/wasm-pack-plugin/plugin.d.ts:26:5 - error TS2666: Exports and export assignments are not permitted in module augmentations.

26     export { WasmPackPluginOptions, WasmPackPlugin }
       ~~~~~~

node_modules/@wasm-tool/wasm-pack-plugin/plugin.d.ts:26:14 - error TS2484: Export declaration conflicts with exported declaration of 'WasmPackPluginOptions'.

26     export { WasmPackPluginOptions, WasmPackPlugin }
                ~~~~~~~~~~~~~~~~~~~~~

node_modules/@wasm-tool/wasm-pack-plugin/plugin.d.ts:27:5 - error TS2666: Exports and export assignments are not permitted in module augmentations.

27     export default WasmPackPlugin
       ~~~~~~

node_modules/@wasm-tool/wasm-pack-plugin/plugin.d.ts:28:5 - error TS2666: Exports and export assignments are not permitted in module augmentations.

28     export = WasmPackPlugin
       ~~~~~~

On the surface, having both export default and export = in the same declaration file seems invalid, but I'm not enough of a TypeScript expert to know if there's some valid reason to do this.
wasm-pack-plugin-ts-errors.tar.gz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant