Giter VIP home page Giter VIP logo

hacker233 / resume-design Goto Github PK

View Code? Open in Web Editor NEW
1.3K 7.0 156.0 144.67 MB

一款开源简历设计生成器,内置两款设计器,多种免费模板选择,还可以自定义模板、主题等等,支持导出PDF、JSON数据。

Home Page: https://91huajian.cn

License: MIT License

JavaScript 0.25% HTML 0.04% Vue 76.21% TypeScript 20.14% CSS 2.73% SCSS 0.61% Shell 0.01% Dockerfile 0.01%

resume-design's Issues

vite build 打包报错,内存不足

报错信息:
<--- Last few GCs --->

[17348:000001C192AD0080] 63955 ms: Mark-sweep (reduce) 2044.0 (2082.7) -> 2043.1 (2083.0) MB, 1190.3 / 0.0 ms (average mu = 0.101, current mu = 0.008) allocation failure; scavenge might not succeed
[17348:000001C192AD0080] 65277 ms: Mark-sweep (reduce) 2044.2 (2083.0) -> 2043.2 (2083.2) MB, 1312.3 / 0.0 ms (average mu = 0.054, current mu = 0.007) allocation failure; scavenge might not succeed

<--- JS stacktrace --->

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
1: 00007FF657802BCF node_api_throw_syntax_error+175519
2: 00007FF6577883A6 SSL_get_quiet_shutdown+64006
3: 00007FF657789762 SSL_get_quiet_shutdown+69058
4: 00007FF65822FDD4 v8::Isolate::ReportExternalAllocationLimitReached+116
5: 00007FF65821B132 v8::Isolate::Exit+674
6: 00007FF65809CF8C v8::internal::EmbedderStackStateScope::ExplicitScopeForTesting+124
7: 00007FF6580AA26D v8::internal::Heap::PublishPendingAllocations+1117
8: 00007FF6580A72F7 v8::internal::Heap::PageFlagsAreConsistent+3367
9: 00007FF658099A27 v8::internal::Heap::CollectGarbage+2039
10: 00007FF6580B03E3 v8::internal::HeapAllocator::AllocateRawWithLightRetrySlowPath+2099
11: 00007FF6580B0C8D v8::internal::HeapAllocator::AllocateRawWithRetryOrFailSlowPath+93
13: 00007FF657DB16B5 v8::internal::DateCache::Weekday+1349
15: 00007FF658252E82 v8::internal::SetupIsolateDelegate::SetupHeap+57218
16: 00007FF5D88DC911

OS: windows10
Node: v18.15.0
Npm: 9.5.0
关于Vite的配置是和作者完全一样的

pnpm dev 后报错

按照首页介绍,在云服务器上运行 pnpm dev 后,出现如下错误信息:

build.terserOptions is specified but build.minify is not set to use Terser. Note Vite now defaults to use esbuild for minification. If you still prefer Terser, set build.minify to "terser".

  VITE v3.0.4  ready in 1235 ms

  ➜  Local:   http://localhost:8080/
node:events:491
      throw er; // Unhandled 'error' event
      ^

Error: spawn xdg-open ENOENT
    at Process.ChildProcess._handle.onexit (node:internal/child_process:283:19)
    at onErrorNT (node:internal/child_process:478:16)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)
Emitted 'error' event on ChildProcess instance at:
    at Process.ChildProcess._handle.onexit (node:internal/child_process:289:12)
    at onErrorNT (node:internal/child_process:478:16)
    at processTicksAndRejections (node:internal/process/task_queues:83:21) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'spawn xdg-open',
  path: 'xdg-open',
  spawnargs: [ 'http://localhost:8080/' ]
}
 ELIFECYCLE  Command failed with exit code 1.

机器相关环境信息如下:

root@xxxxx:~/resume-design# pnpm --version
7.9.5
root@xxxxx:~/resume-design# uname -a
Linux xxxxx 5.4.0-47-generic #51-Ubuntu SMP Fri Sep 4 19:50:52 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
root@xxxxx:~/resume-design# node -v
v16.17.0
root@xxxxx:~/resume-design# npm -v
8.19.1

简历制作的页面(views/designer)中,左右布局时,通过复制产生的模块(也就是当相同模块数大于1时)无法删除

截图
我调试之后发现,实际上第一次点击之后,该模块已经从resumeJsonNewStore.COMPONENTS中删除了,但是该页面的leftList或rightList中并没有进行响应式的同步,所以页面上该模块还是显示,造成未删除的假象

我在左右两列布局的情况下,放弃了使用hooks/useDeleteModel这个钩子,暂时解决了这个问题::
image
image

不过这样会多出不少重复的代码,不知道有没有更好的解决办法?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.