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

Broken build on fresh clone (developer) #470

Open
shadowspawn opened this issue Mar 4, 2023 · 1 comment · May be fixed by #478 or #471
Open

Broken build on fresh clone (developer) #470

shadowspawn opened this issue Mar 4, 2023 · 1 comment · May be fixed by #478 or #471
Assignees

Comments

@shadowspawn
Copy link
Member

After a fresh clone the npm run script build:cjs is failing.

Related context: node v18.14.2 on an Apple Silicon Mac

$ npm run build:cjs

> [email protected] build:cjs
> rollup -c


./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 (/Users/john/Documents/Sandpits/yargs/yargs-parser/my-fork/node_modules/typescript/lib/typescript.js:114185:22)
    at pipelineEmitWithHint (/Users/john/Documents/Sandpits/yargs/yargs-parser/my-fork/node_modules/typescript/lib/typescript.js:113716:17)
    at pipelineEmitWithComments (/Users/john/Documents/Sandpits/yargs/yargs-parser/my-fork/node_modules/typescript/lib/typescript.js:117404:13)
    at pipelineEmit (/Users/john/Documents/Sandpits/yargs/yargs-parser/my-fork/node_modules/typescript/lib/typescript.js:113656:13)
    at emitExpression (/Users/john/Documents/Sandpits/yargs/yargs-parser/my-fork/node_modules/typescript/lib/typescript.js:113640:13)
    at emitExportAssignment (/Users/john/Documents/Sandpits/yargs/yargs-parser/my-fork/node_modules/typescript/lib/typescript.js:115652:13)
    at pipelineEmitWithHintWorker (/Users/john/Documents/Sandpits/yargs/yargs-parser/my-fork/node_modules/typescript/lib/typescript.js:113929:32)
    at pipelineEmitWithHint (/Users/john/Documents/Sandpits/yargs/yargs-parser/my-fork/node_modules/typescript/lib/typescript.js:113716:17)
    at pipelineEmitWithComments (/Users/john/Documents/Sandpits/yargs/yargs-parser/my-fork/node_modules/typescript/lib/typescript.js:117404:13)
    at pipelineEmit (/Users/john/Documents/Sandpits/yargs/yargs-parser/my-fork/node_modules/typescript/lib/typescript.js:113656:13)
@shadowspawn shadowspawn self-assigned this Mar 4, 2023
@shadowspawn shadowspawn linked a pull request Mar 4, 2023 that will close this issue
@Jermim
Copy link

Jermim commented Apr 4, 2023

seems working by updating typescript version in package.json
"typescript": "4.6.4"

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