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

not working at all #1535

Open
Gul7333 opened this issue Apr 2, 2024 · 0 comments
Open

not working at all #1535

Gul7333 opened this issue Apr 2, 2024 · 0 comments

Comments

@Gul7333
Copy link

Gul7333 commented Apr 2, 2024

i have json file with root array containing many objects
[
{data},
{data},
]

when i run npx json-server file.json
error came
FATAL ERROR: v8::ToLocalChecked Empty MaybeLocal
----- Native stack trace -----

1: 0x10c13f6c5 node::Abort() [/usr/local/bin/node]
2: 0x10c13f7b1 node::OnFatalError(char const*, char const*) [/usr/local/bin/node]
3: 0x10c2f2d53 v8::api_internal::ToLocalEmpty() [/usr/local/bin/node]
4: 0x10c14e20f node::fs::ReadFileUtf8(v8::FunctionCallbackInfov8::Value const&) [/usr/local/bin/node]
5: 0x10c359da8 v8::internal::MaybeHandlev8::internal::Object v8::internal::(anonymous namespace)::HandleApiCallHelper(v8::internal::Isolate*, v8::internal::Handlev8::internal::HeapObject, v8::internal::Handlev8::internal::FunctionTemplateInfo, v8::internal::Handlev8::internal::Object, unsigned long*, int) [/usr/local/bin/node]
6: 0x10c35936a v8::internal::Builtin_HandleApiCall(int, unsigned long*, v8::internal::Isolate*) [/usr/local/bin/node]
7: 0x10cd061b6 Builtins_CEntry_Return1_ArgvOnStack_BuiltinExit [/usr/local/bin/node]
8: 0x121b16b3e
9: 0x10cc77c9c Builtins_InterpreterEntryTrampoline [/usr/local/bin/node]

----- JavaScript stack trace -----

1: readFileSync (node:fs:453:20)
2: file:///Users/apple/.config/yarn/global/node_modules/json-server/lib/bin.js:98:5
3: run (node:internal/modules/esm/module_job:218:25)

Abort trap: 6

macbook 2012 terminal , i installed json server using yarn globall add json-server

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