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

[Bug?]:SyntaxError: Unexpected token 'N', "Not Found" is not valid JSON #1627

Closed
2 tasks done
ZacRenis opened this issue Sep 18, 2024 · 7 comments
Closed
2 tasks done
Labels
bug Something isn't working

Comments

@ZacRenis
Copy link

ZacRenis commented Sep 18, 2024

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the latest version

Current behavior 😯

No response

Expected behavior 🤔

No response

Steps to reproduce 🕹

Steps:

1.npm create jd-app@latest
2.What is the name of the app? apri
3.Will you deploy this project to vercel? If so, how None
4.Copied template files to D:\path\to\create-jd-app\project
5. What should we use for this app? AuthJS, Prisma, TailwindCSS, pRPC
6. cd project
7. npm run push
8. npm run dev

Context 🔦

No response
it was caused by AuthJS, but i do not know how to fix it.

Your environment 🌎

No response

@ZacRenis ZacRenis added the bug Something isn't working label Sep 18, 2024
@lxsmnsyc
Copy link
Member

Do you have any .json() calls anywhere? seems like it's trying to decode a non-existent json.

@blopker
Copy link

blopker commented Sep 19, 2024

I just ran into this via an npm update. No code changes, just updating @solid-mediakit/auth from 2.1.2 to 2.1.3 (this commit). I'm not sure what's wrong though, the stack trace is not easy to understand.

@ZacRenis
Copy link
Author

ZacRenis commented Sep 19, 2024

I just ran into this via an npm update. No code changes, just updating @solid-mediakit/auth from 2.1.2 to 2.1.3 (this commit). I'm not sure what's wrong though, the stack trace is not easy to understand.

Not really, I just run those command to initial the project, I suppose it was caused by none-config of AuthJS, because it goes correctly when I start a new project without selected AuthJS. Nevertheless I donnot know how to fix.

@ZacRenis
Copy link
Author

ZacRenis commented Sep 19, 2024

Do you have any .json() calls anywhere? seems like it's trying to decode a non-existent json.

Not really, I just run those command to initial the project without changing any code.

@levma
Copy link

levma commented Sep 20, 2024

Downgrading @solid-mediakit/auth to v2.1.2 solved the issue for me.

@levma
Copy link

levma commented Sep 21, 2024

This solved the problem for me:
I've set config.basePath to '/api/auth' in src/server/auth.ts
(I've created an issue in mediakit as it is related to their package and not solid-start directly: solidjs-community/mediakit#103)

@ryansolid
Copy link
Member

A new version of create-jd-app was released the other day might be worth double checking. In either case I'd consider opening the issue there or in mediakit as this seems specific to those libraries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants