Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install with yarn #52

Open
JayYellow opened this issue Aug 9, 2018 · 4 comments
Open

Install with yarn #52

JayYellow opened this issue Aug 9, 2018 · 4 comments
Labels

Comments

@JayYellow
Copy link

when i run start the boilerplate, it take an error:

ERROR in /Users/twer/Desktop/jay/react-redux-typescript-boilerplate/src/main.tsx
./main.tsx
[tsl] ERROR in /Users/twer/Desktop/jay/react-redux-typescript-boilerplate/src/main.tsx(14,3)
TS2345: Argument of type 'Element' is not assignable to parameter of type 'ReactElement[]'.
Property 'includes' is missing in type 'Element'.
ℹ 「wdm」: Failed to compile.

how to resolve it?

@rokoroku
Copy link
Owner

rokoroku commented Aug 9, 2018

Could you clean your files and try again after installing it with npm ci?

I don't have any problem after clean install (both npm i and npm ci).

@JayYellow
Copy link
Author

@rokoroku when i install with 'yarn install' that it will make the error . But when i use 'npm install' that it will start correctly

@rokoroku
Copy link
Owner

Since this repo is not integrated with yarn, if you want to use yarn, you must generate yarn.lock before yarn install by using below command:

$ yarn import

https://yarnpkg.com/blog/2018/06/04/yarn-import-package-lock/

@rokoroku rokoroku changed the title 'npm run start' make some errors: TS2345: Argument of type 'Element' is not assignable to parameter of type 'ReactElement<any>[]'. Install with yarn Oct 29, 2018
@jcubic
Copy link

jcubic commented Nov 16, 2018

I also used yarn it's working but for my case I use yarn start to start the project. I've didn't use yarn import only yarn install that generated the lock file.

PS: I removed previous comment because I've got errors in logs even that the app started but those where after my modifications, so basic project work fine.

I'm using Windows 7 with git bash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants