K-Sato1995 / webpack-bundle-analyzer-action

MIT License
0 stars 0 forks source link

webpack-bundle-analzer not working with the recomendded ncc way #9

Open K-Sato1995 opened 2 years ago

K-Sato1995 commented 2 years ago

Not sure why. Just included node_modules so far. (Not exactly ideal)

log from https://github.com/K-Sato1995/gh-actions-test/runs/5357830546?check_suite_focus=true

Error: Cannot find module '/home/runner/work/gh-actions-test/gh-actions-test/dist/threadChild.js'
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
    at MessagePort.<anonymous> (node:internal/main/worker_thread:187:24)
    at MessagePort.[nodejs.internal.kHybridDispatch] (node:internal/event_target:562:20)
    at MessagePort.exports.emitMessage (node:internal/per_context/messageport:[23](https://github.com/K-Sato1995/gh-actions-test/runs/5357830546?check_suite_focus=true#step:6:23):[28](https://github.com/K-Sato1995/gh-actions-test/runs/5357830546?check_suite_focus=true#step:6:28))

image

K-Sato1995 commented 2 years ago

Haven't really looked into it but probably cuz not all dependencies webpack-bundle-analyzer needs are installed??