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

Error during yarn demo #107

Closed
nos-joel opened this issue Apr 18, 2022 · 4 comments
Closed

Error during yarn demo #107

nos-joel opened this issue Apr 18, 2022 · 4 comments

Comments

@nos-joel
Copy link

The following happens after yarn demo command

vite build --config vite.production.config.ts
vite v2.6.14 building for production...
transforming (1394) node_modules/lodash/_getValue.jsUse of eval is strongly discouraged, as it poses security risks and may cause issues with minification
Use of eval is strongly discouraged, as it poses security risks and may cause issues with minification
✓ 1444 modules transformed.

<--- Last few GCs --->

[10229:0x7fe4cb900000]    43932 ms: Scavenge (reduce) 2041.5 (2080.9) -> 2041.0 (2081.1) MB, 3.5 / 0.0 ms  (average mu = 0.242, current mu = 0.192) allocation failure 
[10229:0x7fe4cb900000]    43936 ms: Scavenge (reduce) 2041.7 (2081.1) -> 2041.2 (2081.4) MB, 3.5 / 0.0 ms  (average mu = 0.242, current mu = 0.192) allocation failure 
[10229:0x7fe4cb900000]    43941 ms: Scavenge (reduce) 2041.9 (2081.4) -> 2041.4 (2081.6) MB, 3.4 / 0.0 ms  (average mu = 0.242, current mu = 0.192) allocation failure 


<--- JS stacktrace --->

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
 1: 0x10e3fd775 node::Abort() [/usr/local/bin/node]
 2: 0x10e3fd8f8 node::OnFatalError(char const*, char const*) [/usr/local/bin/node]
 3: 0x10e575707 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [/usr/local/bin/node]
 4: 0x10e5756a3 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/usr/local/bin/node]
 5: 0x10e7140e5 v8::internal::Heap::FatalProcessOutOfMemory(char const*) [/usr/local/bin/node]
 6: 0x10e71811b v8::internal::Heap::RecomputeLimits(v8::internal::GarbageCollector) [/usr/local/bin/node]
 7: 0x10e7149ec v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::GCCallbackFlags) [/usr/local/bin/node]
 8: 0x10e711e9a v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/usr/local/bin/node]
 9: 0x10e71f2c0 v8::internal::Heap::AllocateRawWithLightRetrySlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/usr/local/bin/node]
10: 0x10e71f341 v8::internal::Heap::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/usr/local/bin/node]
11: 0x10e6ec1b7 v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationType, v8::internal::AllocationOrigin) [/usr/local/bin/node]
12: 0x10ea9a2ae v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [/usr/local/bin/node]
13: 0x10ee3c359 Builtins_CEntry_Return1_DontSaveFPRegs_ArgvOnStack_NoBuiltinExit [/usr/local/bin/node]
error Command failed with signal "SIGABRT".
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
@m-Ryan
Copy link
Collaborator

m-Ryan commented Apr 19, 2022

Please update the command in demo/package.json.

"build": "NODE_OPTIONS=--max-old-space-size=4096 vite build --config vite.production.config.ts"

Relatived: vitejs/vite#2433

@nos-joel
Copy link
Author

nos-joel commented Apr 19, 2022

Please update the command in demo/package.json.

"build": "NODE_OPTIONS=--max-old-space-size=4096 vite build --config vite.production.config.ts"

Relatived: vitejs/vite#2433

That did the job. Thanks for such a quick reply and fix.

@nos-joel
Copy link
Author

nos-joel commented Apr 19, 2022

@m-Ryan After building the project, I see that the loaded templates are not locally but the ones stored on your server. Is it possible to load my own templates in order to not mess with your page?...also to add my personal touch. I believe that it feeds the templates from a json file, but got lost while getting deeper into the project.

@m-Ryan m-Ryan closed this as completed Apr 24, 2022
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