You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 5, 2021. It is now read-only.
I've gotten a taste of typewiz by running some of my codebase in node, and it's awesome! But now when I turned to run it over the create-react-app-based codebase, I'm seeing errors when encountering exported function overloads, for some reason (which I didn't see occur in typewiz-node, oddly).
I've created a repro of this, which requires the following two repos:
cd react-scripts-ts
yarn link
yarn install
cd ../cra-typewiz-example
yarn link react-scripts-ts
yarn install
yarn start
When the dev server starts, it spits out the error:
./src/App.tsx 6:16
Module parse failed: Identifier 'foo' has already been declared (6:16)
You may need an appropriate loader to handle this file type.
| import logo from "./logo.svg";
| export function foo(x) { }
> export function foo(x) { }
| export function foo(x) { }
Any ideas around this? I hope my creating these repos helps!
The text was updated successfully, but these errors were encountered:
Reproduced with the following test case (in instrument.spec.ts):
it('should not instrument a function declaration that has no a body',()=>{// See issue #85 for detailsconstinput=`function foo(n: number): void;`;expect(instrument(input,'test.ts')).toContain(astPrettyPrint('function foo(n: number): void;'),);});
I've gotten a taste of typewiz by running some of my codebase in node, and it's awesome! But now when I turned to run it over the create-react-app-based codebase, I'm seeing errors when encountering exported function overloads, for some reason (which I didn't see occur in typewiz-node, oddly).
I've created a repro of this, which requires the following two repos:
To get started, clone both repos, then run:
When the dev server starts, it spits out the error:
Any ideas around this? I hope my creating these repos helps!
The text was updated successfully, but these errors were encountered: