Skip to content

[hscs]: Error when using project scaffolding #11192

Description

@markcowl

Doing a clean tsp init, selecting openapi3 and http-server-csharp, got the following error during install/build:

PS C:\Users\markcowl\check> npx hscs-scaffold . --overwrite
TypeSpec Http Server Emitter for C-Sharp

Compiling spec to create ASP.Net core project with mock implementations
using http port 5973 and https port 7306
> npx tsp compile C:/Users/markcowl/check --emit @typespec/http-server-csharp --option @typespec/http-server-csharp.emit-mocks=mocks-and-project-files --option @typespec/http-server-csharp.project-name=ServiceProject --trace http-server-csharp --option @typespec/http-server-csharp.overwrite=true --option @typespec/http-server-csharp.http-port=5973 --option @typespec/http-server-csharp.https-port=7306 --option @typespec/http-server-csharp.collection-type=array
TypeSpec compiler v1.13.0


- Compiling...

× Compiling

Diagnostics were reported during compilation:

error js-error: Failed to load C:/Users/markcowl/check/node_modules/@typespec/http-server-csharp/dist/src/index.js due to the following JS error: The requested module '@typespec/emitter-framework/csharp' does not provide an export named 'getDocComments'

Found 1 error.

No emitter was configured, no output was generated. Use `--emit <emitterName>` to pick emitter or specify it in the TypeSpec config.

Metadata

Metadata

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions