dart-archive / js_facade_gen

Generates package:js Javascript interop facades for arbitrary TypeScript libraries
Apache License 2.0
161 stars 29 forks source link

re-exports must have a module URL (export x from "./y"). #80

Closed ghost closed 4 years ago

ghost commented 4 years ago

Hi, not sure how to fix this:

dart_js_facade_gen --destination=./out_from_facade --base-path=./webrtc/lib/ ./webrtc/lib/index.d.ts
Transpiling [ './webrtc/lib/index.d.ts' ] to ./out_from_facade
webrtc/lib/index.d.ts:3:1: re-exports must have a module URL (export x from "./y").
webrtc/lib/index.d.ts:1:1: Could not format because the source could not be parsed:

line 4, column 8: Expected a string literal.
  ╷
4 │ export show TelnyxRTC, ICall, IClientOptions, ICallOptions, ICredentials, MessageEvents ;
  │        ^^^^
  ╵

file index.d.ts contains:

import TelnyxRTC from './TelnyxRTC';
import { ICall, IClientOptions, ICallOptions, ICredentials, MessageEvents } from './utils/interfaces';
export { TelnyxRTC, ICall, IClientOptions, ICallOptions, ICredentials, MessageEvents };

from https://github.com/team-telnyx/webrtc/tree/master/src

karthickai commented 3 years ago

@ghost Could you tell us how you solved the issue?