Skip to content

Getting this.workspace.openProject is not a function when generating #1285

@Gaspa79

Description

@Gaspa79

Hey! I noticed that since updating node (LTS version v22.16.0) I've been getting

this.workspace.openProject is not a function 

Whenever i run a regular generate. I'm doing the exact same thing as usual and can't find any workarounds for this. Any ideas? Thanks!

Stacktrace here:

at Biome.openProject (node_modules\@biomejs\js-api\dist\index.js:59:31)
    at Biome.create (node_modules\@biomejs\js-api\dist\index.js:21:15)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async CodeFormatter.format (/C:/Repos/SJ/SoyJurista-Ng/node_modules/swagger-typescript-api/dist/src-CyhiKzh-.js:41:17)
    at async CodeFormatter.formatCode (/C:/Repos/SJ/SoyJurista-Ng/node_modules/swagger-typescript-api/dist/src-CyhiKzh-.js:55:22)
    at async CodeGenProcess.createOutputFileInfo (/C:/Repos/SJ/SoyJurista-Ng/node_modules/swagger-typescript-api/dist/src-CyhiKzh-.js:2963:17)
    at async CodeGenProcess.createSingleFileInfo (/C:/Repos/SJ/SoyJurista-Ng/node_modules/swagger-typescript-api/dist/src-CyhiKzh-.js:2933:10)
    at async CodeGenProcess.generateOutputFiles (/C:/Repos/SJ/SoyJurista-Ng/node_modules/swagger-typescript-api/dist/src-CyhiKzh-.js:2882:99)
    at async CodeGenProcess.start (/C:/Repos/SJ/SoyJurista-Ng/node_modules/swagger-typescript-api/dist/src-CyhiKzh-.js:2791:19)
    at async generateApi (/C:/Repos/SJ/SoyJurista-Ng/node_modules/swagger-typescript-api/dist/src-CyhiKzh-.js:3129:9)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions