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
Seed.js when starting a Typescript project #113
Comments
This is probably related to the changes from #106 @joeleonard212 Could you please explain the error that you're seeing? |
yeah @joeleonard212 I'm not seeing any issues on a freshly created indie-stack so if there's any specific errors you're seeing that would be helpful https://gist.github.com/mcansh/8e4bfd21f2f8de96ab00989d8aa15154 |
yeah, this error is referred to the blog-tutorial. I mean, picking the typescript flavour I was expecting to find Prisma in typescript as well. The seed.js cannot be parsed correctly with the following error: Parsing error: Cannot find module '@babel/preset-react' basically, this breaks the workflow of the tutorial. not sure if fixing this dependency would solve, maybe other error would occur later |
This is probably related to the commit which changed the prisma seed command to use Could you revert the above changes in package.json and see if that fixes anything? |
Hello @moishinetzer I did try and change my code to reflect what you said. Additionally in app/posts/index.tsx I had to replace the first two lines with:
from
I think the issue is that the blog tutorial hasn't bee updated. The problem I am getting is:
That issue is pointing at the line given in the tutorial: It doesn't like the post in await It would be really amazing if the tutorial was made functional again! Lord knows I am trying but I don't understand the core technologies enough yet. |
Have you experienced this bug with the latest version of the template?
remix-run/indie-stack blog-tutorial
Steps to Reproduce
run command:
npx create-remix --template remix-run/indie-stack blog-tutorial
then choose:
Typescript
Expected Behavior
in the prisma module, should be a file called seed.ts
Actual Behavior
the actual file is seed.js and some errors are occuring when using it
The text was updated successfully, but these errors were encountered: