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

Sveltekit build fails when running 'npm run build' but works on 'npm run dev' #151

Open
a-choyster opened this issue Jan 12, 2024 · 1 comment

Comments

@a-choyster
Copy link

a-choyster commented Jan 12, 2024

Hi,

Currently using it in SvelteKit, runs nicely in dev but as soon as I run 'npm run build' then the following error is thrown.

Any help would be greatly appreciated.

Thanks,
Ambrose

Run npm run preview to preview your production build locally.
FATAL ERROR: v8::HandleScope::CreateHandle() Cannot create a handle without a HandleScope
1: 0x102d92b15 node::Abort() [/usr/local/bin/node]
2: 0x102d92c01 node::OnFatalError(char const*, char const*) [/usr/local/bin/node]
3: 0x102f45e71 v8::Utils::ReportApiFailure(char const*, char const*) [/usr/local/bin/node]
4: 0x1030ccc82 v8::internal::HandleScope::Extend(v8::internal::Isolate*) [/usr/local/bin/node]
5: 0x1033c249a v8::internal::JSReceiver::GetCreationContext() [/usr/local/bin/node]
6: 0x102f5f7b8 v8::Object::GetCreationContext() [/usr/local/bin/node]
7: 0x102cac252 node::MakeCallback(v8::Isolate*, v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value, node::async_context) [/usr/local/bin/node]
8: 0x13554b2c8 Nan::Callback::Call_(v8::Isolate
, v8::Localv8::Object, int, v8::Localv8::Value, Nan::AsyncResource) const [/Users/ac/Projects/zh/node_modules/@pokusew/pcsclite/build/Release/pcsclite.node]
9: 0x13554ab72 PCSCLite::HandleReaderStatusChange(uv_async_s*) [/Users/ac/Projects/zh/node_modules/@pokusew/pcsclite/build/Release/pcsclite.node]
10: 0x1038ac8f1 uv__async_io [/usr/local/bin/node]
11: 0x1038c028c uv__io_poll [/usr/local/bin/node]
12: 0x1038acef6 uv_run [/usr/local/bin/node]
13: 0x102cac700 node::SpinEventLoopInternal(node::Environment*) [/usr/local/bin/node]
14: 0x102ddd7fb node::NodeMainInstance::Run(node::ExitCode*, node::Environment*) [/usr/local/bin/node]
15: 0x102ddd56c node::NodeMainInstance::Run() [/usr/local/bin/node]
16: 0x102d585a3 node::Start(int, char**) [/usr/local/bin/node]
17: 0x208da43a6

@ambrose-ig
Copy link

same issue on Ubuntu:

Run npm run preview to preview your production build locally.
FATAL ERROR: v8::HandleScope::CreateHandle() Cannot create a handle without a HandleScope
----- Native stack trace -----

1: 0xcc050e node::OnFatalError(char const*, char const*) [node]
2: 0x104e986 v8::Utils::ReportApiFailure(char const*, char const*) [node]
3: 0x11f61a2 v8::internal::HandleScope::Extend(v8::internal::Isolate*) [node]
4: 0x1488cfc v8::internal::JSReceiver::GetCreationContext() [node]
5: 0x105a5e8 v8::Object::GetCreationContext() [node]
6: 0xd05172 node::MakeCallback(v8::Isolate*, v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value, node::async_context) [node]
7: 0x7fa8d1954a41 PCSCLite::HandleReaderStatusChange(uv_async_s
) [/home/ac/Documents/zh/node_modules/@pokusew/pcsclite/build/Release/pcsclite.node]
8: 0x1a3d7b3 [node]
9: 0x1a5205c [node]
10: 0x1a3e4d7 uv_run [node]
11: 0xd05bb3 node::SpinEventLoopInternal(node::Environment*) [node]
12: 0xe42c25 [node]
13: 0xe435ed node::NodeMainInstance::Run() [node]
14: 0xdacb5f node::Start(int, char**) [node]
15: 0x7fa8d1629d90 [/lib/x86_64-linux-gnu/libc.so.6]
16: 0x7fa8d1629e40 __libc_start_main [/lib/x86_64-linux-gnu/libc.so.6]
17: 0xd021ce _start [node]
Aborted (core dumped)

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

2 participants