dagu-org / dagu

Developer-friendly, minimalism Cron alternative, but with much more capabilities. It aims to solve greater problems.
https://dagu.readthedocs.io
GNU General Public License v3.0
1.44k stars 138 forks source link

Cant build Web gui from the makefile. On Darwin M2 #671

Closed gedw99 closed 3 weeks ago

gedw99 commented 3 weeks ago

Cant build Web gui from the makefile on latest src

On Darwin M2

which npm
/opt/homebrew/bin/npm
apple@192 dagu %  
apple@192 dagu % npm -v
10.8.2
make build-ui
Building UI...
yarn install v1.22.22
[1/4] 🔍  Resolving packages...
success Already up-to-date.
✨  Done in 0.09s.
yarn run v1.22.22
$ webpack --config webpack.prod.js
assets by status 8.75 MiB [cached] 95 assets
orphan modules 17.4 MiB [orphan] 13503 modules
runtime modules 7.44 KiB 14 modules
built modules 15.6 MiB (javascript) 1.16 MiB (asset) [built]
  javascript modules 15.6 MiB
    modules by path ./node_modules/ 12.3 MiB 627 modules
    modules by path ./src/ 3.3 MiB
      modules by path ./src/styles/*.css 4.83 KiB 2 modules
      + 2 modules
    fs (ignored) 15 bytes [built] [code generated]
  asset modules 3.61 KiB (javascript) 1.16 MiB (asset)
    modules by path ./node_modules/@fontsource/inter/ 2.3 KiB (javascript) 677 KiB (asset) 56 modules
    modules by path ./node_modules/@fontsource/roboto/ 1.31 KiB (javascript) 515 KiB (asset)
      modules by path ./node_modules/@fontsource/roboto/files/*.woff2 1.15 KiB (javascript) 259 KiB (asset) 28 modules
      modules by path ./node_modules/@fontsource/roboto/files/*.woff 168 bytes (javascript) 256 KiB (asset) 4 modules

ERROR in /Users/apple/workspace/go/src/junk/dagu/ui/src/components/molecules/DAGTable.tsx
./src/components/molecules/DAGTable.tsx 52:9-28
[tsl] ERROR in /Users/apple/workspace/go/src/junk/dagu/ui/src/components/molecules/DAGTable.tsx(52,10)
      TS2724: '"../../models/api"' has no exported member named 'GetListTagsResponse'. Did you mean 'GetDAGResponse'?
ts-loader-default_e3b0c44298fc1c14
 @ ./src/pages/dags/index.tsx 6:0-59 102:36-44
 @ ./src/App.tsx 17:0-32 40:98-102
 @ ./src/index.tsx 3:0-24 18:32-35

webpack 5.88.2 compiled with 1 error in 32548 ms
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
make: *** [Makefile:209: build-ui] Error 1
gedw99 commented 3 weeks ago

Its a regression ... tag v1.14.3 builds fine.

git checkout v1.14.3

Note: switching to 'v1.14.3'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at 765fa19 Additional tests (#663)
apple@192 dagu % make build-ui 
Building UI...
yarn install v1.22.22
[1/4] 🔍  Resolving packages...
success Already up-to-date.
✨  Done in 0.09s.
yarn run v1.22.22
$ webpack --config webpack.prod.js
assets by path *.woff2 544 KiB
  asset 3cd8400fefcd41fe460c.woff2 21.9 KiB [emitted] [immutable] [from: node_modules/@fontsource/inter/files/inter-latin-ext-600-normal.woff2] (auxiliary name: main)
  asset cd2491c30c7f25218ecd.woff2 21.8 KiB [emitted] [immutable] [from: node_modules/@fontsource/inter/files/inter-latin-ext-500-normal.woff2] (auxiliary name: main)
  asset 9d00aad461d0a2a6a18a.woff2 21.3 KiB [emitted] [immutable] [from: node_modules/@fontsource/inter/files/inter-latin-ext-300-normal.woff2] (auxiliary name: main)
  + 53 assets
assets by path *.woff 648 KiB
  asset 0ab669b7a0d19b178f57.woff 64.2 KiB [emitted] [immutable] [from: node_modules/@fontsource/roboto/files/roboto-all-500-normal.woff] (auxiliary name: main)
  asset a457fde362a540fcadff.woff 64 KiB [emitted] [immutable] [from: node_modules/@fontsource/roboto/files/roboto-all-700-normal.woff] (auxiliary name: main)
  asset c5d001fa922fa66a147f.woff 63.9 KiB [emitted] [immutable] [from: node_modules/@fontsource/roboto/files/roboto-all-400-normal.woff] (auxiliary name: main)
  + 29 assets
assets by path *.js 7.58 MiB
  assets by status 7.34 MiB [big] 4 assets
  asset editor.worker.js 224 KiB [emitted] [minimized]
  asset 316.bundle.js 18.9 KiB [emitted] [minimized] (id hint: vendors)
  asset 585.bundle.js 3.91 KiB [emitted] [minimized] 1 related asset
orphan modules 17.4 MiB [orphan] 13503 modules
runtime modules 7.44 KiB 14 modules
built modules 15.6 MiB (javascript) 1.16 MiB (asset) [built]
  javascript modules 15.6 MiB
    modules by path ./node_modules/ 12.3 MiB 627 modules
    modules by path ./src/ 3.26 MiB
      modules by path ./src/styles/*.css 4.83 KiB 2 modules
      + 2 modules
    fs (ignored) 15 bytes [built] [code generated]
  asset modules 3.61 KiB (javascript) 1.16 MiB (asset)
    modules by path ./node_modules/@fontsource/inter/ 2.3 KiB (javascript) 677 KiB (asset) 56 modules
    modules by path ./node_modules/@fontsource/roboto/ 1.31 KiB (javascript) 515 KiB (asset)
      modules by path ./node_modules/@fontsource/roboto/files/*.woff2 1.15 KiB (javascript) 259 KiB (asset) 28 modules
      modules by path ./node_modules/@fontsource/roboto/files/*.woff 168 bytes (javascript) 256 KiB (asset) 4 modules

WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
This can impact web performance.
Assets: 
  yaml.worker.js (1.04 MiB)
  bundle.js (4.52 MiB)
  487.bundle.js (1.34 MiB)
  724.bundle.js (446 KiB)

WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
Entrypoints:
  main (4.52 MiB)
      bundle.js

webpack 5.88.2 compiled with 2 warnings in 32292 ms
✨  Done in 33.45s.
Copying UI assets...
yohamta commented 3 weeks ago

Thank you very much for submitting the issue! Now it is fixed.