Skip to content

Could not resolve import path in my ts file when build with @rollup/plugin-typescript #1467

Description

@ederzz

Reproduce code:
https://github.com/ederzz/testrollup/tree/master

When i run npm run dev,i got the error:

Error [RollupError]: Could not resolve "./types" from "src/vm.ts"

Would someone help me to fix it.Thx.

Activity

  1. ederzz commented on Apr 2, 2023

    @ederzz
    Author

    I want to build vm.ts, and output the file without import statement, only get a single js file.

  2. locked and limited conversation to collaborators on Apr 2, 2023
  3. converted this issue into a discussion #1468 on Apr 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions