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

Could not Parse Prime Config Issue #224

Open
ssrgspdkt opened this issue Jun 6, 2019 · 7 comments
Open

Could not Parse Prime Config Issue #224

ssrgspdkt opened this issue Jun 6, 2019 · 7 comments

Comments

@ssrgspdkt
Copy link

Could not parse prime config SyntaxError: Unexpected token U in JSON at position 251
at JSON.parse ()
at Module.1101 (settings.ts:15)
at f ((index):1)
at Object.532 (Toolbar.module.css:2)
at f ((index):1)
at a ((index):1)
at Array.e [as push] ((index):1)
at main.529cbcdc.chunk.js:1

What could be the reason? How to solve this?

@birkir
Copy link
Owner

birkir commented Jun 6, 2019

Most likely invalid JSON in your prime config. Extra comma or something?

@ssrgspdkt
Copy link
Author

Most likely invalid JSON in your prime config. Extra comma or something?

Where I could find this config?

@birkir
Copy link
Owner

birkir commented Jun 6, 2019

If you don't have this file (.primerc)
We may have to figure this out together!
It usually is in the root of a project

@ssrgspdkt
Copy link
Author

If you don't have this file (.primerc)
We may have to figure this out together!
It usually is in the root of a project
I have the following files
http://my.jetscreenshot.com/14061/20190606-jvf8-9kb.jpg

@intellix
Copy link
Contributor

intellix commented Jun 6, 2019

I believe there's code which parses package.json and it could be the same reason. If you run it through an online json validator it'll tell you what's wrong

@ssrgspdkt
Copy link
Author

I believe there's code which parses package.json and it could be the same reason. If you run it through an online json validator it'll tell you what's wrong

I have checked using validator. it's valid. But it contains the following lines only
{ "name": "prime", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "start": "node index.js", "test": "echo \"Error: no test specified\" && exit 1" }, "dependencies": { "@primecms/core": "0.3.2-beta.3", "@primecms/ui": "0.3.2-beta.3" } }

@smyther
Copy link

smyther commented Oct 17, 2019

Hello,

I'm also getting this issue, however, I seem to have tracked it down to the fact that the uiDir in the config JSON doesn't have escaped backslashes....

However, I haven't dug deep enough into the code to figure out how to fix/change this yet!

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

4 participants