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

Can't build locally #475

Closed
tommy-mitchell opened this issue Mar 23, 2023 · 2 comments
Closed

Can't build locally #475

tommy-mitchell opened this issue Mar 23, 2023 · 2 comments

Comments

@tommy-mitchell
Copy link

On a fresh copy of the repo, running the build:cjs script fails with an error from rollup-plugin-ts:

[!] (plugin Typescript) Error: Debug Failure. Unhandled SyntaxKind: Unknown.
Error Log
./lib/index.ts → ./build/index.cjs...
DeprecationWarning: 'createExportAssignment' has been deprecated since v4.0.0. Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead.
(!) Unresolved dependencies
https://rollupjs.org/guide/en/#warning-treating-module-as-external-dependency
util (imported by lib/index.ts)
path (imported by lib/index.ts)
fs (imported by lib/index.ts)
[!] (plugin Typescript) Error: Debug Failure. Unhandled SyntaxKind: Unknown.
Error: Debug Failure. Unhandled SyntaxKind: Unknown.
    at pipelineEmitWithHintWorker (.../yargs-parser/node_modules/typescript/lib/typescript.js:113127:22)
    at pipelineEmitWithHint (.../yargs-parser/node_modules/typescript/lib/typescript.js:112660:17)
    at pipelineEmitWithComments (.../yargs-parser/node_modules/typescript/lib/typescript.js:116301:13)
    at pipelineEmit (.../yargs-parser/node_modules/typescript/lib/typescript.js:112600:13)
    at emitExpression (.../yargs-parser/node_modules/typescript/lib/typescript.js:112584:13)
    at emitExportAssignment (.../yargs-parser/node_modules/typescript/lib/typescript.js:114585:13)
    at pipelineEmitWithHintWorker (.../yargs-parser/node_modules/typescript/lib/typescript.js:112873:32)
    at pipelineEmitWithHint (.../yargs-parser/node_modules/typescript/lib/typescript.js:112660:17)
    at pipelineEmitWithComments (.../yargs-parser/node_modules/typescript/lib/typescript.js:116301:13)
    at pipelineEmit (.../yargs-parser/node_modules/typescript/lib/typescript.js:112600:13)
@tommy-mitchell
Copy link
Author

Slightly related, rollup-plugin-ts v3.2.0 includes breaking changes (drops support for Node 14, see wessberg/rollup-plugin-ts#202), but rolling back to v3.1.1 doesn't fix this build issue.

@tommy-mitchell
Copy link
Author

Just saw #470 and #471, whoops, guess I didn't look hard enough. Closing as duplicate.

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