Skip to content

[Bug]: Missing type exports #4139

@marius-at-atb

Description

@marius-at-atb

Mapbox Implementation

Mapbox

Mapbox Version

11.15.0

React Native Version

0.83.1

React Native Architecture

New Architecture (Fabric/TurboModules)

Platform

iOS

@rnmapbox/maps version

10.2.10

Standalone component to reproduce

import {Expression} from '@rnmapbox/maps/src/utils/MapboxStyles';
const myExpression: Expression = ['get', 'myProp']

Observed behavior and steps to reproduce

On the new version, this has to be imported with
node_modules/ as a prefix -> import {Expression} from 'node_modules/@rnmapbox/maps/src/utils/MapboxStyles'

Expected behavior

Import without node_modules/ prefix.

Notes / preliminary analysis

Same thing needed for type imports from these paths:
node_modules/@rnmapbox/maps/src/components/SymbolLayer
node_modules/@rnmapbox/maps/src/utils/MapboxStyles
node_modules/@rnmapbox/maps/src/components/MapView
node_modules/@rnmapbox/maps/src/types/OnPressEvent

Unless I'm doing something wrong?

Additional links and references

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🪲Something isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions