Skip to content

Cannot find module 'h3' or its corresponding type declarations #1933

@BeGj

Description

@BeGj

Please provide the environment you discovered this bug in.

  • create-analog@2.0.2
  • node version v24.11.0
  • node installed using fnm 1.38.1
  • vscode v1,105,1
  • pnpm version 10.20.0

On a fresh ubuntu24.04 WSL install on a fresh windows 11 pro install btw.

Which area/package is the issue in?

create-analog

Description

After creating a analog.js project using pnpm create analog the src/server/routes/api/v1/hello.ts has a red error in vscode on the h3 import saying Cannot find module 'h3' or its corresponding type declarations.ts(2307).

But the project compiles and the specified api route returns as expected.

Seems similiar to this issue #1774

Please provide the exception or error you saw

`Cannot find module 'h3' or its corresponding type declarations.ts(2307)`

Other information

No response

I would be willing to submit a PR to fix this issue

  • Yes
  • No

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions