jamesknelson / create-react-blog

Start and deploy your own statically rendered blog with create-react-app
https://create-react-blog.netlify.com/
MIT License
550 stars 69 forks source link

Type error index.tsx line 75 #4

Closed kmosti closed 5 years ago

kmosti commented 5 years ago

The build fails to compile:

image

OS: macOS 10.14.2 Node/npm: v10.14.0 / 6.4.1

jamesknelson commented 5 years ago

I'm not able to reproduce this on a fresh call to npx create-react-blog test --typescript, and then running yarn start in the console.

How are calling the build script? Also, can you confirm that your project is using TypeScript 3.2.2?

kmosti commented 5 years ago

I have not actually touched anything, so yes Typescript is 3.2.2. I also tried creating a new blog called test, and verified that yarn install runs with no issues. I can ignore the compilation error (and the page renders fine) by just prepending // @ts-ignore However, not a great solution.

jamesknelson commented 5 years ago

Weiiird. Any chance you could zip up the generated folder (including node_modules) and put it somewhere for me to take a look?

kmosti commented 5 years ago

Here you go:

https://www.jottacloud.com/s/045a958fe90aefb4e1f9d6ec4d4774136b6

jamesknelson commented 5 years ago

Thanks! I've tried diffing your node_modules against a newly installed node_modules, but it's basically the same. Given that your zip's source builds just fine, I assume the issue is something to do with your local TypeScript configuration or environment variables.

I'm going to close this for the moment, but feel free to re-open if you can reproduce on another machine.