Skip to content

Attempted import error: 'EspLoader' is not exported from '@toit/esptool.js' #15

@plaffitt

Description

@plaffitt

Hello,

I'm trying to use your library in a React app but I'm facing a weird import issue at compile time only. When I run REACT_APP_API_URL=http://localhost:8000 react-app-rewired start it works, but when I run react-app-rewired build I got this error message :

> react-app-rewired build

Creating an optimized production build...
Failed to compile.

./src/serial/MicropythonSerialInterface.ts
Attempted import error: 'EspLoader' is not exported from '@toit/esptool.js'.

esptool.js version 0.12.3, typescript version 4.7.4, node version v16.18.0.

My import statement : import { EspLoader } from '@toit/esptool.js';

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