Angular ์ ํ๋ฆฌ์ผ์ด์ ์
๊ฒฝ๊ณ ์ ๋ํ PSB ๋ก๊ทธ
WARNING in src/app/core/services/feathers.service.ts depends on @feathersjs/socketio-client. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
WARNING in src/app/core/services/feathers.service.ts depends on @feathersjs/feathers. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
WARNING in src/app/core/services/feathers.service.ts depends on @feathersjs/authentication-client. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
WARNING in src/app/core/services/feathers.service.ts depends on socket.io-client. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
WARNING in src/app/core/services/feathers.service.ts depends on feathers-reactive. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
๋ชจ๋ ๋ฒ์
@feathersjs/authentication-client: "^4.5.4"
@feathersjs/feathers: "^4.5.3"
@feathersjs/socketio-client: "^4.5.4"
socket.io-client: "^2.3.0"
NodeJS ๋ฒ์ :
๋
ธ๋ 12
์ด์ ์ฒด์ :
๋ฆฌ๋
์ค ๋ฏผํธ 19.3
HI arkenstan ์ angular.json ํ์ผ์ ์ด๊ฒ์ ์ถ๊ฐํ๋ ๊ฒฝ๊ณ ๋ฅผ ํด๊ฒฐํฉ๋๋ค.
`
"๊ฑด์ถ๊ฐ": {
"์ง๋ค": {
"๋น๋": "@angular-devkit/build- angular:browser ",
"์ต์
": {
"allowedCommonJsDependencies": [
"socket.io-ํด๋ผ์ด์ธํธ",
"socket.io ํ์",
"๋๋ฒ๊ทธ"
],
`
๋ํ #18025๋ฅผ ๋ณผ ์ ์์ต๋๋ค
์ด๋ฌํ ๊ฒฝ๊ณ ๋ฅผ ์ฌ๋ฐ๋ฅด๊ฒ ์์ ํ๋ ค๋ฉด ESM ๋น๋๋ฅผ ์ถ๊ฐํด์ผ ํฉ๋๋ค.
๋์ผํ ๋ฌธ์ ๊ฐ ์์ ๊ฒฝ๊ณ : ์ง์
์ simplebar-angular์๋ ๊น์ ๊ฐ์ ธ์ค๊ธฐ๊ฐ ํฌํจ๋์ด ์์ต๋๋ค.
"build"=> "options"์์ angular.json์ ์ถ๊ฐํด ๋ณด์ธ์.
"allowedCommonJsDependencies": ["core-js"],
๋ํ tsconfig.json์ ๋ฌด์ธ๊ฐ๋ฅผ ์ถ๊ฐํ ๊ฒ์ ๊ธฐ์ตํฉ๋๋ค.
์ฌ๊ธฐ์์ ๋์์ด ๋ ๊ฒ์ ๊ธฐ๋ณธ ์ค์ ์ ์ฌ์ฉํ ๋ด ์ฌ๋ก ํ์ธ์
๋๋ค.
{
"compileOnSave": false,
"compilerOptions": {
"baseUrl": "./",
"outDir": "./public/out-tsc",
"sourceMap": true,
"declaration": false,
"downlevelIteration": true,
"experimentalDecorators": true,
"module": "esnext",
"moduleResolution": "node",
"importHelpers": true,
"target": "es2015",
"allowSyntheticDefaultImports": true,
"typeRoots": [
"node_modules/@types"
],
"lib": [
"es2018",
"dom"
]
}
}
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
์ด๋ฌํ ๊ฒฝ๊ณ ๋ฅผ ์ฌ๋ฐ๋ฅด๊ฒ ์์ ํ๋ ค๋ฉด ESM ๋น๋๋ฅผ ์ถ๊ฐํด์ผ ํฉ๋๋ค.