error

    [Vite] aws-sdk๋ฅผ ์‚ฌ์šฉํ•œ ํ”„๋กœ์ ํŠธ์˜ ๋นŒ๋“œ ์‹คํŒจ ('request' is not exported...)

    [Vite] aws-sdk๋ฅผ ์‚ฌ์šฉํ•œ ํ”„๋กœ์ ํŠธ์˜ ๋นŒ๋“œ ์‹คํŒจ ('request' is not exported...)

    ์˜ค๋ฅ˜ 'request' is not exported by __vite-browser-external, imported by node_modules/@aws-sdk/xxxxx/node_modules/@aws-sdk/credential-provider-imds/dist/es/remoteProvider/httpRequest.js React viteJS๋กœ ์ž‘์—…ํ•œ ํ”„๋กœ์ ํŠธ๋ฅผ ๋นŒ๋“œ ์‹œ ์œ„์™€ ๊ฐ™์€ ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ–ˆ๋‹ค. AWS Amplify ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ์™€ ๊ด€๋ จ๋œ ์ด์Šˆ๋กœ ๋ณด์—ฌ์ง„๋‹ค. ํ•ด๊ฒฐ ๋ฐฉ๋ฒ• // vite.config.js import { defineConfig } from "vite"; export default defineConfig({ resolve: { alias: { "./runtimeConfig": "./runti..

    [Node.js] Cannot find module '@aws-sdk/util-endpoints' ์˜ค๋ฅ˜

    [Node.js] Cannot find module '@aws-sdk/util-endpoints' ์˜ค๋ฅ˜

    ์˜ค๋ฅ˜ 1) Cannot find module '@aws-sdk/util-endpoints' 2) this.client.send is not a function Node.js ํ”„๋กœ์ ํŠธ์—์„œ aws-sdk์™€ multer-s3 ๋ฅผ ์ด์šฉํ•ด์„œ ์ด๋ฏธ์ง€ ์—…๋กœ๋“œ ๊ธฐ๋Šฅ์„ ๊ตฌํ˜„ํ•˜๋˜ ์ค‘ ๋งŒ๋‚œ ์˜ค๋ฅ˜์ด๋‹ค. ํ•ด๊ฒฐ ๋‘๊ฐ€์ง€ ์˜ค๋ฅ˜๋Š” ์ „๋ถ€ ํŒจํ‚ค์ง€ ๊ฐ„ ๋ฒ„์ „ ํ˜ธํ™˜์ด ์•ˆ๋˜์–ด์„œ ์ƒ๊ธฐ๋Š” ์ด์Šˆ์˜€๋‹ค. ๊ฒ€์ƒ‰ํ•ด๋ณด๋‹ˆ multer-s3 2.x๋Š” aws-sdk 2.x์™€ ํ˜ธํ™˜๋˜๊ณ , multer-s3 3.x๋Š” aws-sdk 3.x์™€ ํ˜ธํ™˜๋œ๋‹ค๊ณ  ํ•œ๋‹ค. ๋‚ด๊ฐ€ ์„ค์น˜ํ•œ aws-sdk๋Š” 2.x ๋ฒ„์ „์ด๊ณ  multer-s3 ์€ 3.x ๋ฒ„์ „์ด์–ด์„œ ๋‹ค์šด๊ทธ๋ ˆ์ด๋“œ๊ฐ€ ํ•„์š”ํ–ˆ๋‹ค. ์•„๋ž˜์™€ ๊ฐ™์ด ๊ธฐ์กด์— ์„ค์น˜๋˜์–ด ์žˆ๋˜ multer-s3 ๋ฅผ ์‚ญ์ œํ•˜๊ณ , 2.x ๋ฒ„์ „์œผ๋กœ ์„ค์น˜ ํ•ด์ฃผ์—ˆ๋”๋‹ˆ ์—๋Ÿฌ๊ฐ€ ..

    [AWS S3] The bucket does not allow ACLs ์˜ค๋ฅ˜

    [AWS S3] The bucket does not allow ACLs ์˜ค๋ฅ˜

    AWS S3 ACLs ์˜ค๋ฅ˜ AWS S3๋ฅผ ์ด์šฉํ•ด์„œ ์ด๋ฏธ์ง€๋ฅผ ์—…๋กœ๋“œ ํ•˜๋Š” ๊ธฐ๋Šฅ์„ ๊ตฌํ˜„ ํ•˜๋˜ ์ค‘ ๋‹ค์Œ๊ณผ ๊ฐ™์€ ์˜ค๋ฅ˜๋ฅผ ๋งŒ๋‚ฌ๋‹ค. ํ•ด๋‹น ์˜ค๋ฅ˜๋Š” ๋ฒ„ํ‚ท์˜ ACL(Access Control List)์ด ๋น„ํ™œ์„ฑํ™” ์ƒํƒœ๋ผ์„œ ์ƒ๊ธฐ๋Š” ์˜ค๋ฅ˜๋‹ค. ํ•ด๊ฒฐ S3๋กœ ๊ฐ€์„œ ๋ฒ„ํ‚ท์˜ ๊ถŒํ•œ์„ ๋ฐ”๊ฟ”์ฃผ๋ฉด ํ•ด๊ฒฐ๋œ๋‹ค. 1. ํ•ด๋‹น ๋ฒ„ํ‚ท์˜ ๊ถŒํ•œ ํƒญ์œผ๋กœ ์ด๋™ํ•œ๋‹ค. 2. ์Šคํฌ๋กค์„ ๋‚ด๋ ค์„œ ๊ฐ์ฒด ์†Œ์œ ๊ถŒ ํŽธ์ง‘์„ ํด๋ฆญํ•œ๋‹ค. 3. ์•„๋ž˜์™€ ๊ฐ™์ด ์„ค์ •์„ ๋ณ€๊ฒฝํ•œ ํ›„ ๋ณ€๊ฒฝ ์‚ฌํ•ญ ์ €์žฅ์„ ํด๋ฆญํ•œ๋‹ค. 4. ์ƒˆ๋กœ๊ณ ์นจ ํ›„ ํ™•์ธ ์ •์ƒ์ ์œผ๋กœ ์ฝ˜์†”์ฐฝ์— ์ด๋ฏธ์ง€ ์ •๋ณด๊ฐ€ ์ถœ๋ ฅ๋œ ๊ฒƒ์„ ํ™•์ธํ•  ์ˆ˜ ์žˆ์—ˆ๋‹ค. ์ฐธ๊ณ  https://stackoverflow.com/questions/71080354/getting-the-bucket-does-not-allow-acls-error getting "The b..

    [Three.js] Uncaught TypeError: Failed to resolve module specifier "three"... ์—๋Ÿฌ

    Three.js ์—์„œ Uncaught TypeError: Failed to resolve module specifier "three"... ์—๋Ÿฌ ํ•ด๊ฒฐ๋ฒ• Uncaught TypeError: Failed to resolve module specifier "three". Relative references must start with either "/", "./", or "../" ์ถœ์ฒ˜ : https://stackoverflow.com/questions/68160473/failed-to-resolve-module-specifier-thre : https://stackoverflow.com/questions/65697410/not-using-node-js-uncaught-typeerror-failed-to-re..

    [Webpack] Cannot find module 'sass' ์—๋Ÿฌ

    [Webpack] Cannot find module 'sass' ์—๋Ÿฌ

    node-sass ๊ฐ€ ์„ค์น˜๋˜์–ด ์žˆ๋Š”์ง€ ํ™•์ธํ•ด๋ณด๊ธฐ npm i node-sass -D

    [Gulp] Task never defined: default ์˜ค๋ฅ˜

    [Gulp] Task never defined: default ์˜ค๋ฅ˜

    https://stackoverflow.com/questions/57693486/gulp-task-never-defined-task gulp4.0 ๋ฌธ๋ฒ•์œผ๋กœ ์ˆ˜์ •ํ•˜๊ธฐ: //before gulp.task('default', ['js']); //after gulp.task('default', gulp.series('js'));

    [JS] DevTools failed to load source map: … ๊ฒฝ๊ณ  ์ง€์šฐ๊ธฐ

    [JS] DevTools failed to load source map: … ๊ฒฝ๊ณ  ์ง€์šฐ๊ธฐ

    ์ฝ˜์†” ์ฐฝ์— ๋œจ๋Š” DevTools failed to load source map... ๊ฒฝ๊ณ  ์ง€์šฐ๊ธฐ DevTools failed to load source map: Could not load content for {ํŒŒ์ผ}.map: System error: net::ERR_FILE_NOT_FOUND 1. ๊ฒฝ๊ณ  ๋ฉ”์„ธ์ง€๊ฐ€ ๊ฐ€๋ฅดํ‚ค๋Š” ์†Œ์Šค ํŒŒ์ผ ์ฐพ์•„์„œ ์—ด๊ธฐ 2. sourceMappingURL๋ฅผ ๊ฒ€์ƒ‰ 3. ํ•ด๋‹น ๋ผ์ธ์„ ์‚ญ์ œ ๋˜๋Š” ํ•ด๋‹น ๋ผ์ธ ์•ž์— // ๋ฅผ ๋ถ™์—ฌ ์ฃผ์„์ฒ˜๋ฆฌ ์ˆ˜์ • ์ „ //# sourceMappingURL={ํŒŒ์ผ๋ช…}.map ↓ ์ˆ˜์ • ํ›„ // //# sourceMappingURL={ํŒŒ์ผ๋ช…}.map

    [JS] e.touches[0] ์—์„œ Uncaught TypeError: Cannot read property '0' of undefined ์—๋Ÿฌ

    e.touches[0].clientX ๋ฅผ e.touches && e.touches[0].clientX ๋กœ ๋ณ€๊ฒฝ e.touches[0].clientX || e.clientX; ↓ (e.touches && e.touches[0].clientX) || e.clientX; stackoverflow.com/questions/38527202/mouse-and-touch-events-not-working-as-expected Mouse and Touch events not working as expected I'm trying to add a mouse and touch down and move event. In the events function, I want to get the clientX amount. I d..

    [jQuery] Uncaught TypeError: url.indexOf is not a function ์—๋Ÿฌ

    ์—๋Ÿฌ Uncaught TypeError: url.indexOf is not a function... ์›์ธ load() ๋ฉ”์„œ๋“œ๋Š” 1.8 ๋ฒ„์ „ ์ดํ›„๋กœ deprecated ๋˜์—ˆ๋‹ค. ํ•ด๊ฒฐ jQuery์˜ load() ๋ฉ”์„œ๋“œ๋ฅผ ์‚ฌ์šฉํ•œ ๋ถ€๋ถ„์ด ์žˆ๋‹ค๋ฉด ์•„๋ž˜์™€ ๊ฐ™์ด on() ๋ฉ”์„œ๋“œ๋กœ ๋ณ€๊ฒฝํ•œ๋‹ค. // ์ „ $(window).load(function() { ... }); // ํ›„ $(window).on('load', function() { ... }); ์ฐธ๊ณ  https://api.jquery.com/category/deprecated/deprecated-1.8/ Deprecated 1.8 | jQuery API Documentation Add the previous set of elements on the stack to t..