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 Jan 26, 2019. It is now read-only.
(2248,13): Subsequent property declarations must have the same type. Property 'a' must be of type 'DetailedHTMLProps<AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>', but here has type 'DetailedHTMLProps<AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>'.nchorElement>', but here has type 'DetailedHTMLProps<AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>'.
Reproducible Demo
The text was updated successfully, but these errors were encountered:
@jeffarese I've encountered the same warning before, and it was due to conflicting versions of @types/react or @types/react-dom.
You can check if that's the case by running yarn list @types/react* inside your project
So what was happening is that I don't know why but there was a package.json and a node_modules folder in my home folder, and the npm run start was trying to use that (hence the /home/user/node_modules) instead of home/user/path-ro-repo/node_modules.
Deleting this package.json and node_modules (even them being outside the project folder) solved the issue.
Is this a bug report?
Yes
Can you also reproduce the problem with npm 4.x?
Yes. I first tried with
5.6.0
, then with4.2.0
, then with6.2.0
Which terms did you search for in User Guide?
Initial build, Failed to compile
Environment
npm ls react-scripts-ts
(if you haven’t ejected):[email protected]
node -v
:v8.10.0
npm -v
:5.6.0
yarn --version
(if you use Yarn):1.7.0
npm ls react-scripts-ts
(if you haven’t ejected):[email protected]
(again)Then, specify:
Antergos
Kernel:
x86_64 Linux 4.16.13-1-ARC
Chrome Version 68.0.3440.15 (Official Build) dev (64-bit), but it's not relevant.
Steps to Reproduce
(Write your steps here:)
create-react-app project-name --scripts-version=react-scripts-ts
cd project-name
yarn start
ornpm run start
Expected Behavior
It should compile the app.
Actual Behavior
Reproducible Demo
The text was updated successfully, but these errors were encountered: