JavaScript
TypeScript

CloudFlare Svelte 질문

el

elecball_
질문 종료
60 XP

CloudFlare에 Sveltekit 사이트를 올리던 중 다음과 같은 오류가 떴습니다.

22:55:48.600    > Using @sveltejs/adapter-cloudflare
22:55:49.975    ✘ [ERROR] Could not resolve "child_process"
22:55:49.980    
22:55:49.980        node_modules/google-auth-library/build/src/auth/googleauth.js:17:32:
22:55:49.980          17 │ const child_process_1 = require("child_process");
22:55:49.980             ╵                                 ~~~~~~~~~~~~~~~
22:55:49.980    
22:55:49.981      The package "child_process" wasn't found on the file system but is built into node. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.
22:55:49.981    
22:55:49.981    ✘ [ERROR] Could not resolve "events"
22:55:49.981    
22:55:49.981        node_modules/google-auth-library/build/src/auth/authclient.js:17:25:
22:55:49.981          17 │ const events_1 = require("events");
22:55:49.981             ╵                          ~~~~~~~~
...
2:55:51.273    Failed: Error while executing user command. Exited with error code: 1
22:55:51.285    Failed: build command exited with code: 1
22:55:52.771    Failed: error occurred while running build command

어떻게 해결할 수 있을까요?


불러오는 중...