Skip to content

Metro 0.83.5 no longer exports types from 0.83.3Β #1671

@tido64

Description

@tido64

I don't know if this was intentional but our builds started to fail with 0.83.5:

  src/metro.ts:2:15 - error TS2614: Module '"metro"' has no exported member 'Module'. Did you mean to use 'import Module from "metro"' instead?
  
  2 import type { Module, ReadOnlyGraph, SerializerOptions } from "metro";
                  ~~~~~~
  
  src/metro.ts:2:23 - error TS2614: Module '"metro"' has no exported member 'ReadOnlyGraph'. Did you mean to use 'import ReadOnlyGraph from "metro"' instead?
  
  2 import type { Module, ReadOnlyGraph, SerializerOptions } from "metro";
                          ~~~~~~~~~~~~~
  
  src/metro.ts:2:38 - error TS2614: Module '"metro"' has no exported member 'SerializerOptions'. Did you mean to use 'import SerializerOptions from "metro"' instead?
  
  2 import type { Module, ReadOnlyGraph, SerializerOptions } from "metro";
                                         ~~~~~~~~~~~~~~~~~

And indeed, the types are now gone:

0.83.3 0.83.5
Image Image

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