Page 1 of 1

error when deploying project on vite

Posted: Thu Jul 13, 2023 7:55 pm
by tourajasadpour
i got this error when i want to build my project :

npm run build

> kendo-react-components@0.0.0 build
> tsc && vite build

vite v4.2.1 building for production...
transforming (8305)
Use of eval in "node_modules/stimulsoft-reports-js/Scripts/stimulsoft.viewer.js" is strongly discouraged as it poses security risks and may cause issues with minification.
Use of eval in "node_modules/stimulsoft-reports-js/Scripts/stimulsoft.viewer.js" is strongly discouraged as it poses security risks and may cause issues with minification.
✓ 8341 modules transformed.

<--- Last few GCs --->

[26856:0000025D0E521EB0] 76216 ms: Mark-sweep 3996.5 (4138.0) -> 3981.0 (4138.4) MB, 958.7 / 0.0 ms (average mu = 0.195, current mu = 0.038) allocation failure; scavenge might not succeed
[26856:0000025D0E521EB0] 77924 ms: Mark-sweep 3997.6 (4138.6) -> 3987.2 (4144.4) MB, 1667.2 / 0.0 ms (average mu = 0.093, current mu = 0.024) allocation failure; scavenge might not succeed


<--- JS stacktrace --->

FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
1: 00007FF7B682D51F node_api_throw_syntax_error+175743
2: 00007FF7B67B2E66 v8::internal::wasm::WasmCode::safepoint_table_offset+59654
3: 00007FF7B67B4B72 v8::internal::wasm::WasmCode::safepoint_table_offset+67090
4: 00007FF7B725AAB4 v8::Isolate::ReportExternalAllocationLimitReached+116
5: 00007FF7B7245E12 v8::Isolate::Exit+674
6: 00007FF7B70C7C6C v8::internal::EmbedderStackStateScope::ExplicitScopeForTesting+124
7: 00007FF7B70C4E8B v8::internal::Heap::CollectGarbage+3963
8: 00007FF7B70DB0C3 v8::internal::HeapAllocator::AllocateRawWithLightRetrySlowPath+2099
9: 00007FF7B70DB96D v8::internal::HeapAllocator::AllocateRawWithRetryOrFailSlowPath+93
10: 00007FF7B70E42BA v8::internal::Factory::AllocateRaw+810
11: 00007FF7B70FABDA v8::internal::FactoryBase<v8::internal::Factory>::NewFixedArrayWithFiller+90
12: 00007FF7B70FAAED v8::internal::FactoryBase<v8::internal::Factory>::NewFixedArray+77
13: 00007FF7B6F7F953 v8::internal::FeedbackNexus::ic_state+64275
14: 00007FF7B6F77A48 v8::internal::FeedbackNexus::ic_state+31752
15: 00007FF7B6F725F2 v8::internal::FeedbackNexus::ic_state+10162
16: 00007FF7B6F1E159 v8::internal::JSObject::AddDataElement+1113
17: 00007FF7B6ECA3E3 v8::internal::StringSet::Add+1491
18: 00007FF7B6EE0CC4 v8::internal::Object::SetProperty+148
19: 00007FF7B6DD6C83 v8::internal::Runtime::SetObjectProperty+243
20: 00007FF7B6DD5BE0 v8::internal::Runtime::GetObjectProperty+15024
21: 00007FF7B72F8051 v8::internal::SetupIsolateDelegate::SetupHeap+558193
22: 00007FF737611BB7

this error happening when i add stimulsoft-report-js npm to my project , what shoud i do ?

Re: error when deploying project on vite

Posted: Thu Jul 13, 2023 9:02 pm
by Lech Kulikowski
Hello,

Please send us a sample project that reproduces the issue for analysis on support@stimulsoft.com

Thank you.

Re: error when deploying project on vite

Posted: Tue Sep 19, 2023 8:46 pm
by tourajasadpour
hi this the sample which creared with vite+react
1 - run ----> yarn install
2- run ----> yarn dev (the report will successfully load )
when you run -------> npm run build
you will get this error ( Failed to load resource: the server responded with a status of 404 (Not Found))
and the report viewer is empty

stitest.rar
sample project with Vite+React
(3.11 MiB) Downloaded 169 times

Re: error when deploying project on vite

Posted: Tue Sep 19, 2023 8:47 pm
by tourajasadpour
Lech Kulikowski wrote: Thu Jul 13, 2023 9:02 pm Hello,

Please send us a sample project that reproduces the issue for analysis on support@stimulsoft.com

Thank you.
stitest.rar
sample project with react+vite
(3.11 MiB) Downloaded 228 times

Re: error when deploying project on vite

Posted: Wed Sep 20, 2023 9:45 am
by Max Shamanov
Hello,

We need some additional time to investigate the issue, we will let you know about the result.

Thank you.

Re: error when deploying project on vite

Posted: Thu Sep 21, 2023 12:09 pm
by Max Shamanov
Hello,

Unfortunately, we were unable to reproduce this issue on your test sample.
Please check the attached images.

Thank you.