make watch error displayed in console. #11016

Closed
opened 2025-11-02 09:25:11 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @lunny on GitHub (Jun 13, 2023).

95% emitting emit/Users/lunny/data/Projects/gitea/gitea/node_modules/webpack/lib/Compiler.js:769
								cacheEntry.sizeOnlySource = new SizeOnlySource(size);
								                            ^

TypeError: SizeOnlySource is not a constructor
    at updateFileWithReplacementSource (/Users/lunny/data/Projects/gitea/gitea/node_modules/webpack/lib/Compiler.js:769:37)
    at updateWithReplacementSource (/Users/lunny/data/Projects/gitea/gitea/node_modules/webpack/lib/Compiler.js:751:8)
    at processMissingFile (/Users/lunny/data/Projects/gitea/gitea/node_modules/webpack/lib/Compiler.js:814:8)
    at /Users/lunny/data/Projects/gitea/gitea/node_modules/webpack/lib/Compiler.js:856:10
    at callback (/Users/lunny/data/Projects/gitea/gitea/node_modules/graceful-fs/polyfills.js:306:20)
    at FSReqCallback.oncomplete (node:fs:211:21)

Node.js v18.4.0
make[1]: *** [watch-frontend] Error 1
Originally created by @lunny on GitHub (Jun 13, 2023). ```log 95% emitting emit/Users/lunny/data/Projects/gitea/gitea/node_modules/webpack/lib/Compiler.js:769 cacheEntry.sizeOnlySource = new SizeOnlySource(size); ^ TypeError: SizeOnlySource is not a constructor at updateFileWithReplacementSource (/Users/lunny/data/Projects/gitea/gitea/node_modules/webpack/lib/Compiler.js:769:37) at updateWithReplacementSource (/Users/lunny/data/Projects/gitea/gitea/node_modules/webpack/lib/Compiler.js:751:8) at processMissingFile (/Users/lunny/data/Projects/gitea/gitea/node_modules/webpack/lib/Compiler.js:814:8) at /Users/lunny/data/Projects/gitea/gitea/node_modules/webpack/lib/Compiler.js:856:10 at callback (/Users/lunny/data/Projects/gitea/gitea/node_modules/graceful-fs/polyfills.js:306:20) at FSReqCallback.oncomplete (node:fs:211:21) Node.js v18.4.0 make[1]: *** [watch-frontend] Error 1 ```
Author
Owner

@wxiaoguang commented on GitHub (Jun 13, 2023):

rm -rf node_modules

@wxiaoguang commented on GitHub (Jun 13, 2023): `rm -rf node_modules`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#11016