Skip to content

0.17.0 does not work with React 17 #921

Open
@mariepw

Description

🐛 Bug report

Since useId is not available on React17 it breaks with [email protected]

In auto-id package https://github.com/reach/reach-ui/blob/develop/packages/auto-id/src/index.tsx,

import * as React from "react";

is compiled as

import { useId as useId$1, useState, useEffect } from 'react'

in the esm module.

This leads to the following error

image

Software Name(s) Version
Reach Package reach/alert-dialog 0.17.0
React React 17.0.2
React-scripts react-scripts 5.0.0
npm/yarn yarn 1.22.18
Operating System MacOs 12.3.1

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