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

Lesson 63 JSON Server and XSS and VSC installation version issues #25

Open
daUhradone opened this issue Jan 26, 2024 · 0 comments
Open

Comments

@daUhradone
Copy link

daUhradone commented Jan 26, 2024

Great stuff you do here!

I'm running VSC 1.85.1 on a Linux Mint machine Jan. 2024

Installing json-server with
npm install json-server
gives me some issues and hints from the bash.

Trying anyway to access it with:

json-server -v

gives me "command not found" but json-server is inside the node_modules

If I follow the hints from the bash:

"@vue/cli-service": "~5.0.0"

get's downgraded to 3.x

but then I have XSS issues trying to update the db.json file and the browser blocks the attempt.

The version that is automatically loaded according to package.json is:

"json-server": "^1.0.0-alpha.22"

A solution that I found online is to use

npx json-server --watch data/db.json

But then updating db.json is shaky and not reliable, plus adding a new project gives me the id "a8f7" instead of id: "3"

It looks like json-server with vue.cli has some version issues

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

1 participant