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

Cannot read file '../tsconfig.json' #61

Closed
slubimav opened this issue May 21, 2022 · 3 comments
Closed

Cannot read file '../tsconfig.json' #61

slubimav opened this issue May 21, 2022 · 3 comments

Comments

@slubimav
Copy link

slubimav commented May 21, 2022

Have you experienced this bug with the latest version of the template?

Yes

Steps to Reproduce

npx create-remix --template remix-run/grunge-stack

Where would you like to create your app? remix-blog
Do you want me to run npm install? (Y/n) Y
TypeScript or JavaScript? JavaScript
Do you want to run the build/tests/etc to verify things are setup properly? Yes

error TS5083: Cannot read file '/Users/Siarhei_Liubimau/Documents/remix/remix-blog/tsconfig.json'.

Expected Behavior

The template should work out of the box.

Actual Behavior

The template is broken and unusable.

@mcansh
Copy link
Contributor

mcansh commented May 23, 2022

hey! do you have an empty tsconfig.json file in the parent directory by chance?

ah! misread this is a JS project - are you still getting this error @slubimav?

@machour machour added the needs-response We need a response from the original author about the issue label Jun 8, 2022
@47Key
Copy link

47Key commented Jun 30, 2022

I found that going through the config files and changing the extensions from .ts to .js worked for me, the issue seems to be coming from cypress. I deleted the tsconfig file in the cypress folder, and removed the eslint export file that included the tsconfig file.

the vitest.config, remix.config and cypress.config files all had .ts file extensions listed. Deleting any mention of typescript files in the config files seemed to fix the issues. After doing that running "npm run dev" brings me to the default grunge stack homepage. It's a bit buggy but I wouldn't consider it unusable, just a bit of digging around to find the problem.

@machour
Copy link
Collaborator

machour commented Jul 11, 2022

Closing this issue as no response was provided.
Feel free to re-open it if it's still a problem.

@machour machour closed this as not planned Won't fix, can't repro, duplicate, stale Jul 11, 2022
@MichaelDeBoey MichaelDeBoey removed the needs-response We need a response from the original author about the issue label Nov 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants