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

Generate Server Stub from TypeSpec for JavaScript failed #2

Open
jianingwang123 opened this issue Jan 10, 2025 · 0 comments
Open

Generate Server Stub from TypeSpec for JavaScript failed #2

jianingwang123 opened this issue Jan 10, 2025 · 0 comments

Comments

@jianingwang123
Copy link

Description:

When generating Server Stubs for JavaScript, there is an issue. The error message is as follows:

image

Notes: According to the design document, It seems the server code emitter for JavaScript is experimental.

Repro steps:

  1. Install the typespec extension.
  2. Install @typespec/compiler: npm install -g @typespec/compiler.
  3. Typing >TypeSpec: Generate from TypeSpec and Click the command.
  4. Choose a project.
  5. Select an Emitter Type <PREVIEW> Server Stub.
  6. Select JavaScript.

Environment:

  • TypeSpec for VS Code extension version: 0.63.0
  • TypeSpec compiler/CLI version: 0.63.0
  • OS: Windows/Linux

Expected behavior
Generate server code for JavaScript ...Succeeded.

@msyyc for notification.

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